{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "a5d5ff55",
   "metadata": {},
   "source": [
    "# Residual plot"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "f70e298e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"OcbqU2\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
       "       if(!window.letsPlotCallQueue) {\n",
       "           window.letsPlotCallQueue = [];\n",
       "       }; \n",
       "       window.letsPlotCall = function(f) {\n",
       "           window.letsPlotCallQueue.push(f);\n",
       "       };\n",
       "       (function() {\n",
       "           var script = document.createElement(\"script\");\n",
       "           script.type = \"text/javascript\";\n",
       "           script.src = \"https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v3.2.0/js-package/distr/lets-plot.min.js\";\n",
       "           script.onload = function() {\n",
       "               window.letsPlotCall = function(f) {f();};\n",
       "               window.letsPlotCallQueue.forEach(function(f) {f();});\n",
       "               window.letsPlotCallQueue = [];\n",
       "               \n",
       "               \n",
       "           };\n",
       "           script.onerror = function(event) {\n",
       "               window.letsPlotCall = function(f) {};\n",
       "               window.letsPlotCallQueue = [];\n",
       "               var div = document.createElement(\"div\");\n",
       "               div.style.color = 'darkred';\n",
       "               div.textContent = 'Error loading Lets-Plot JS';\n",
       "               document.getElementById(\"OcbqU2\").appendChild(div);\n",
       "           };\n",
       "           var e = document.getElementById(\"OcbqU2\");\n",
       "           e.appendChild(script);\n",
       "       })();\n",
       "   </script>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "            <div id=\"kotlin_out_0\"></div>\n",
       "            <script type=\"text/javascript\">\n",
       "                            if(!window.kotlinQueues) {\n",
       "                window.kotlinQueues = {};\n",
       "            }\n",
       "            if(!window.kotlinQueues[\"DataFrame\"]) {\n",
       "                var resQueue = [];\n",
       "                window.kotlinQueues[\"DataFrame\"] = resQueue;\n",
       "                window[\"call_DataFrame\"] = function(f) {\n",
       "                    resQueue.push(f);\n",
       "                }\n",
       "            }\n",
       "            (function (){\n",
       "                var modifiers = [(function(script) {\n",
       "    script.src = \"https://cdn.jsdelivr.net/gh/Kotlin/dataframe@3db46ccccaa1291c0627307d64133317f545e6ae/core/src/main/resources/init.js\"\n",
       "    script.type = \"text/javascript\";\n",
       "})];\n",
       "                var e = document.getElementById(\"kotlin_out_0\");\n",
       "                modifiers.forEach(function (gen) {\n",
       "                    var script = document.createElement(\"script\");\n",
       "                    gen(script)\n",
       "                    script.addEventListener(\"load\", function() {\n",
       "                        window[\"call_DataFrame\"] = function(f) {f();};\n",
       "                        window.kotlinQueues[\"DataFrame\"].forEach(function(f) {f();});\n",
       "                        window.kotlinQueues[\"DataFrame\"] = [];\n",
       "                    }, false);\n",
       "                    script.addEventListener(\"error\", function() {\n",
       "                        window[\"call_DataFrame\"] = function(f) {};\n",
       "                        window.kotlinQueues[\"DataFrame\"] = [];\n",
       "                        var div = document.createElement(\"div\");\n",
       "                        div.style.color = 'darkred';\n",
       "                        div.textContent = 'Error loading resource DataFrame';\n",
       "                        document.getElementById(\"kotlin_out_0\").appendChild(div);\n",
       "                    }, false);\n",
       "                    \n",
       "                    e.appendChild(script);\n",
       "                });\n",
       "            })();\n",
       "            </script>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "                <style>\n",
       "                :root {\n",
       "    --background: #fff;\n",
       "    --background-odd: #f5f5f5;\n",
       "    --background-hover: #d9edfd;\n",
       "    --header-text-color: #474747;\n",
       "    --text-color: #848484;\n",
       "    --text-color-dark: #000;\n",
       "    --text-color-medium: #737373;\n",
       "    --text-color-pale: #b3b3b3;\n",
       "    --inner-border-color: #aaa;\n",
       "    --bold-border-color: #000;\n",
       "    --link-color: #296eaa;\n",
       "    --link-color-pale: #296eaa;\n",
       "    --link-hover: #1a466c;\n",
       "}\n",
       "\n",
       ":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
       "    --background: #303030;\n",
       "    --background-odd: #3c3c3c;\n",
       "    --background-hover: #464646;\n",
       "    --header-text-color: #dddddd;\n",
       "    --text-color: #b3b3b3;\n",
       "    --text-color-dark: #dddddd;\n",
       "    --text-color-medium: #b2b2b2;\n",
       "    --text-color-pale: #737373;\n",
       "    --inner-border-color: #707070;\n",
       "    --bold-border-color: #777777;\n",
       "    --link-color: #008dc0;\n",
       "    --link-color-pale: #97e1fb;\n",
       "    --link-hover: #00688e;\n",
       "}\n",
       "\n",
       "p.dataframe_description {\n",
       "    color: var(--text-color-dark);\n",
       "}\n",
       "\n",
       "table.dataframe {\n",
       "    font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
       "    font-size: 12px;\n",
       "    background-color: var(--background);\n",
       "    color: var(--text-color-dark);\n",
       "    border: none;\n",
       "    border-collapse: collapse;\n",
       "}\n",
       "\n",
       "table.dataframe th, td {\n",
       "    padding: 6px;\n",
       "    border: 1px solid transparent;\n",
       "    text-align: left;\n",
       "}\n",
       "\n",
       "table.dataframe th {\n",
       "    background-color: var(--background);\n",
       "    color: var(--header-text-color);\n",
       "}\n",
       "\n",
       "table.dataframe td {\n",
       "    vertical-align: top;\n",
       "}\n",
       "\n",
       "table.dataframe th.bottomBorder {\n",
       "    border-bottom-color: var(--bold-border-color);\n",
       "}\n",
       "\n",
       "table.dataframe tbody > tr:nth-child(odd) {\n",
       "    background: var(--background-odd);\n",
       "}\n",
       "\n",
       "table.dataframe tbody > tr:nth-child(even) {\n",
       "    background: var(--background);\n",
       "}\n",
       "\n",
       "table.dataframe tbody > tr:hover {\n",
       "    background: var(--background-hover);\n",
       "}\n",
       "\n",
       "table.dataframe a {\n",
       "    cursor: pointer;\n",
       "    color: var(--link-color);\n",
       "    text-decoration: none;\n",
       "}\n",
       "\n",
       "table.dataframe tr:hover > td a {\n",
       "    color: var(--link-color-pale);\n",
       "}\n",
       "\n",
       "table.dataframe a:hover {\n",
       "    color: var(--link-hover);\n",
       "    text-decoration: underline;\n",
       "}\n",
       "\n",
       "table.dataframe img {\n",
       "    max-width: fit-content;\n",
       "}\n",
       "\n",
       "table.dataframe th.complex {\n",
       "    background-color: var(--background);\n",
       "    border: 1px solid var(--background);\n",
       "}\n",
       "\n",
       "table.dataframe .leftBorder {\n",
       "    border-left-color: var(--inner-border-color);\n",
       "}\n",
       "\n",
       "table.dataframe .rightBorder {\n",
       "    border-right-color: var(--inner-border-color);\n",
       "}\n",
       "\n",
       "table.dataframe .rightAlign {\n",
       "    text-align: right;\n",
       "}\n",
       "\n",
       "table.dataframe .expanderSvg {\n",
       "    width: 8px;\n",
       "    height: 8px;\n",
       "    margin-right: 3px;\n",
       "}\n",
       "\n",
       "table.dataframe .expander {\n",
       "    display: flex;\n",
       "    align-items: center;\n",
       "}\n",
       "\n",
       "/* formatting */\n",
       "\n",
       "table.dataframe .null {\n",
       "    color: var(--text-color-pale);\n",
       "}\n",
       "\n",
       "table.dataframe .structural {\n",
       "    color: var(--text-color-medium);\n",
       "    font-weight: bold;\n",
       "}\n",
       "\n",
       "table.dataframe .dataFrameCaption {\n",
       "    font-weight: bold;\n",
       "}\n",
       "\n",
       "table.dataframe .numbers {\n",
       "    color: var(--text-color-dark);\n",
       "}\n",
       "\n",
       "table.dataframe td:hover .formatted .structural, .null {\n",
       "    color: var(--text-color-dark);\n",
       "}\n",
       "\n",
       "table.dataframe tr:hover .formatted .structural, .null {\n",
       "    color: var(--text-color-dark);\n",
       "}\n",
       "\n",
       "\n",
       "                </style>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%useLatestDescriptors\n",
    "%use lets-plot\n",
    "%use dataframe"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "c3361d58",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Lets-Plot Kotlin API v.4.4.1. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.3.2.0."
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "LetsPlot.getInfo()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "47d3de43",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "application/kotlindataframe+json": "{\"nrow\":5,\"ncol\":5,\"columns\":[\"sepal_length\",\"sepal_width\",\"petal_length\",\"petal_width\",\"species\"],\"kotlin_dataframe\":[{\"sepal_length\":5.1,\"sepal_width\":3.5,\"petal_length\":1.4,\"petal_width\":0.2,\"species\":\"setosa\"},{\"sepal_length\":4.9,\"sepal_width\":3.0,\"petal_length\":1.4,\"petal_width\":0.2,\"species\":\"setosa\"},{\"sepal_length\":4.7,\"sepal_width\":3.2,\"petal_length\":1.3,\"petal_width\":0.2,\"species\":\"setosa\"},{\"sepal_length\":4.6,\"sepal_width\":3.1,\"petal_length\":1.5,\"petal_width\":0.2,\"species\":\"setosa\"},{\"sepal_length\":5.0,\"sepal_width\":3.6,\"petal_length\":1.4,\"petal_width\":0.2,\"species\":\"setosa\"}]}",
      "text/html": [
       "        <html>\n",
       "        <head>\n",
       "            <style type=\"text/css\">\n",
       "                :root {\n",
       "    --background: #fff;\n",
       "    --background-odd: #f5f5f5;\n",
       "    --background-hover: #d9edfd;\n",
       "    --header-text-color: #474747;\n",
       "    --text-color: #848484;\n",
       "    --text-color-dark: #000;\n",
       "    --text-color-medium: #737373;\n",
       "    --text-color-pale: #b3b3b3;\n",
       "    --inner-border-color: #aaa;\n",
       "    --bold-border-color: #000;\n",
       "    --link-color: #296eaa;\n",
       "    --link-color-pale: #296eaa;\n",
       "    --link-hover: #1a466c;\n",
       "}\n",
       "\n",
       ":root[theme=\"dark\"], :root [data-jp-theme-light=\"false\"], .dataframe_dark{\n",
       "    --background: #303030;\n",
       "    --background-odd: #3c3c3c;\n",
       "    --background-hover: #464646;\n",
       "    --header-text-color: #dddddd;\n",
       "    --text-color: #b3b3b3;\n",
       "    --text-color-dark: #dddddd;\n",
       "    --text-color-medium: #b2b2b2;\n",
       "    --text-color-pale: #737373;\n",
       "    --inner-border-color: #707070;\n",
       "    --bold-border-color: #777777;\n",
       "    --link-color: #008dc0;\n",
       "    --link-color-pale: #97e1fb;\n",
       "    --link-hover: #00688e;\n",
       "}\n",
       "\n",
       "p.dataframe_description {\n",
       "    color: var(--text-color-dark);\n",
       "}\n",
       "\n",
       "table.dataframe {\n",
       "    font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n",
       "    font-size: 12px;\n",
       "    background-color: var(--background);\n",
       "    color: var(--text-color-dark);\n",
       "    border: none;\n",
       "    border-collapse: collapse;\n",
       "}\n",
       "\n",
       "table.dataframe th, td {\n",
       "    padding: 6px;\n",
       "    border: 1px solid transparent;\n",
       "    text-align: left;\n",
       "}\n",
       "\n",
       "table.dataframe th {\n",
       "    background-color: var(--background);\n",
       "    color: var(--header-text-color);\n",
       "}\n",
       "\n",
       "table.dataframe td {\n",
       "    vertical-align: top;\n",
       "}\n",
       "\n",
       "table.dataframe th.bottomBorder {\n",
       "    border-bottom-color: var(--bold-border-color);\n",
       "}\n",
       "\n",
       "table.dataframe tbody > tr:nth-child(odd) {\n",
       "    background: var(--background-odd);\n",
       "}\n",
       "\n",
       "table.dataframe tbody > tr:nth-child(even) {\n",
       "    background: var(--background);\n",
       "}\n",
       "\n",
       "table.dataframe tbody > tr:hover {\n",
       "    background: var(--background-hover);\n",
       "}\n",
       "\n",
       "table.dataframe a {\n",
       "    cursor: pointer;\n",
       "    color: var(--link-color);\n",
       "    text-decoration: none;\n",
       "}\n",
       "\n",
       "table.dataframe tr:hover > td a {\n",
       "    color: var(--link-color-pale);\n",
       "}\n",
       "\n",
       "table.dataframe a:hover {\n",
       "    color: var(--link-hover);\n",
       "    text-decoration: underline;\n",
       "}\n",
       "\n",
       "table.dataframe img {\n",
       "    max-width: fit-content;\n",
       "}\n",
       "\n",
       "table.dataframe th.complex {\n",
       "    background-color: var(--background);\n",
       "    border: 1px solid var(--background);\n",
       "}\n",
       "\n",
       "table.dataframe .leftBorder {\n",
       "    border-left-color: var(--inner-border-color);\n",
       "}\n",
       "\n",
       "table.dataframe .rightBorder {\n",
       "    border-right-color: var(--inner-border-color);\n",
       "}\n",
       "\n",
       "table.dataframe .rightAlign {\n",
       "    text-align: right;\n",
       "}\n",
       "\n",
       "table.dataframe .expanderSvg {\n",
       "    width: 8px;\n",
       "    height: 8px;\n",
       "    margin-right: 3px;\n",
       "}\n",
       "\n",
       "table.dataframe .expander {\n",
       "    display: flex;\n",
       "    align-items: center;\n",
       "}\n",
       "\n",
       "/* formatting */\n",
       "\n",
       "table.dataframe .null {\n",
       "    color: var(--text-color-pale);\n",
       "}\n",
       "\n",
       "table.dataframe .structural {\n",
       "    color: var(--text-color-medium);\n",
       "    font-weight: bold;\n",
       "}\n",
       "\n",
       "table.dataframe .dataFrameCaption {\n",
       "    font-weight: bold;\n",
       "}\n",
       "\n",
       "table.dataframe .numbers {\n",
       "    color: var(--text-color-dark);\n",
       "}\n",
       "\n",
       "table.dataframe td:hover .formatted .structural, .null {\n",
       "    color: var(--text-color-dark);\n",
       "}\n",
       "\n",
       "table.dataframe tr:hover .formatted .structural, .null {\n",
       "    color: var(--text-color-dark);\n",
       "}\n",
       "\n",
       "\n",
       "\n",
       "\n",
       "            </style>\n",
       "        </head>\n",
       "        <body>\n",
       "            \n",
       "<table class=\"dataframe\" id=\"df_-1493172224\"></table>\n",
       "\n",
       "<p class=\"dataframe_description\">DataFrame: rowsCount = 5, columnsCount = 5</p>\n",
       "        </body>\n",
       "        <script>\n",
       "            \n",
       "/*<!--*/\n",
       "call_DataFrame(function() { DataFrame.addTable({ cols: [{ name: \"<span title=\\\"sepal_length: Double\\\">sepal_length</span>\", children: [], rightAlign: true, values: [\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">5,1</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">4,9</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">4,7</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">4,6</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">5,0</span></span>\"] }, \n",
       "{ name: \"<span title=\\\"sepal_width: Double\\\">sepal_width</span>\", children: [], rightAlign: true, values: [\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">3,5</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">3,0</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">3,2</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">3,1</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">3,6</span></span>\"] }, \n",
       "{ name: \"<span title=\\\"petal_length: Double\\\">petal_length</span>\", children: [], rightAlign: true, values: [\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">1,4</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">1,4</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">1,3</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">1,5</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">1,4</span></span>\"] }, \n",
       "{ name: \"<span title=\\\"petal_width: Double\\\">petal_width</span>\", children: [], rightAlign: true, values: [\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">0,2</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">0,2</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">0,2</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">0,2</span></span>\",\"<span class=\\\"formatted\\\" title=\\\"\\\"><span class=\\\"numbers\\\">0,2</span></span>\"] }, \n",
       "{ name: \"<span title=\\\"species: String\\\">species</span>\", children: [], rightAlign: false, values: [\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\"] }, \n",
       "], id: -1493172224, rootId: -1493172224, totalRows: 5 } ) });\n",
       "/*-->*/\n",
       "\n",
       "call_DataFrame(function() { DataFrame.renderTable(-1493172224) });\n",
       "\n",
       "\n",
       "        </script>\n",
       "        </html>"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "val iris_df = DataFrame.readCSV(\"https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/iris.csv\")\n",
    "iris_df.head()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "9100c090",
   "metadata": {},
   "outputs": [],
   "source": [
    "val iris_dat = iris_df.toMap()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a91e9456",
   "metadata": {},
   "source": [
    "## Default plot"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "0ec657da",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"YZw3rv\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"mapping\":{\n",
       "\"x\":\"petal_length\",\n",
       "\"y\":\"residual\"\n",
       "},\n",
       "\"data\":{\n",
       "\"residual\":[-0.016472739982832107,-0.016472739982832107,0.025169173245708054,-0.05811465321137227,-0.016472739982832107,0.05860152033154742,0.08352726001716787,-0.05811465321137227,-0.016472739982832107,-0.15811465321137227,-0.05811465321137227,-0.09975656643991243,-0.11647273998283211,0.008452999702788316,0.06681108647424822,0.14188534678862774,0.22516917324570807,0.08352726001716787,-0.041398479668452615,0.04188534678862771,-0.1413984796684526,0.14188534678862774,0.15009491293132854,0.1586015203315474,-0.22468230612553292,-0.09975656643991243,0.10024343356008758,-0.05811465321137227,-0.016472739982832107,-0.09975656643991243,-0.09975656643991243,0.14188534678862774,-0.15811465321137227,-0.016472739982832107,-0.15811465321137227,0.06681108647424822,0.025169173245708054,-0.15811465321137227,0.025169173245708054,-0.05811465321137227,0.12516917324570803,0.12516917324570803,0.025169173245708054,0.30024343356008754,-0.024682306125532905,0.08352726001716787,-0.09975656643991243,-0.016472739982832107,-0.05811465321137227,-0.016472739982832107,-0.19065587652465754,-0.0073720500675771294,-0.17393970298173778,8.375160751237232E-4,-0.04901396329611707,-0.20737205006757709,0.009344123475342636,-0.00766909132509519,-0.24901396329611702,0.14247942930366375,-0.09095291778217551,0.11755368961804336,-0.2991624839248763,-0.19065587652465754,0.16740516898928437,-0.06573013683903728,-0.0073720500675771294,-0.34080439715341626,-0.0073720500675771294,-0.15752057069633607,0.16770221024680243,8.375160751237232E-4,-0.17393970298173778,-0.3906558765246575,-0.12408822361049676,-0.06573013683903728,-0.2322977897531977,-0.015581616210277982,-0.0073720500675771294,-0.09095291778217551,-0.11587865746779591,-0.17423674423925584,-0.057520570696336204,-0.157223529438818,-0.0073720500675771294,0.09262794993242296,-0.09065587652465745,-0.16573013683903715,-0.040804397153416216,8.375160751237232E-4,-0.26573013683903723,-0.14901396329611716,-0.09916248392487637,-0.00766909132509519,-0.0824463103819566,-0.1824463103819567,-0.0824463103819566,-0.12408822361049676,0.21725664836052538,-0.040804397153416216,0.36799925150432067,0.1427764705611818,0.009641164732860918,-0.16543309558151886,0.15128307796140117,-0.2818522278669202,0.19262794993242283,-0.4569264881812998,-0.24871692203859896,0.3263573382757805,0.2427764705611819,0.05949264410410149,0.17620881764702134,0.28441838378972206,0.6427764705611818,0.4594926441041014,-0.1237911823529787,-0.22349414109546029,-0.20677796755254096,-0.21558161621027794,0.292924991189941,0.3260602970182622,-0.42349414109546046,0.12606029701826227,0.09292499118994124,-0.3320007484956793,0.16770221024680243,0.12606029701826227,0.13456690441848118,-0.4487169220385989,-0.2736426617242196,-0.29856840140984,0.23456690441848127,-0.2572235294388181,-0.565433095581519,0.12635733827578033,0.434566904418481,-0.1237911823529787,0.16770221024680243,0.2178507308755615,0.434566904418481,0.5427764705611817,0.1427764705611818,0.20964116473286065,0.49292499118994115,0.5011345573326416,0.18441838378972197,0.20113455733264174,0.41785073087556124,0.042776470561181945],\n",
       "\"petal_length\":[1.4,1.4,1.3,1.5,1.4,1.7,1.4,1.5,1.4,1.5,1.5,1.6,1.4,1.1,1.2,1.5,1.3,1.4,1.7,1.5,1.7,1.5,1.0,1.7,1.9,1.6,1.6,1.5,1.4,1.6,1.6,1.5,1.5,1.4,1.5,1.2,1.3,1.5,1.3,1.5,1.3,1.3,1.3,1.6,1.9,1.4,1.6,1.4,1.5,1.4,4.7,4.5,4.9,4.0,4.6,4.5,4.7,3.3,4.6,3.9,3.5,4.2,4.0,4.7,3.6,4.4,4.5,4.1,4.5,3.9,4.8,4.0,4.9,4.7,4.3,4.4,4.8,5.0,4.5,3.5,3.8,3.7,3.9,5.1,4.5,4.5,4.7,4.4,4.1,4.0,4.4,4.6,4.0,3.3,4.2,4.2,4.2,4.3,3.0,4.1,6.0,5.1,5.9,5.6,5.8,6.6,4.5,6.3,5.8,6.1,5.1,5.3,5.5,5.0,5.1,5.3,5.5,6.7,6.9,5.0,5.7,4.9,6.7,4.9,5.7,6.0,4.8,4.9,5.6,5.8,6.1,6.4,5.6,5.1,5.6,6.1,5.6,5.5,4.8,5.4,5.6,5.1,5.1,5.9,5.7,5.2,5.0,5.2,5.4,5.1]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"petal_width residual\"\n",
       "}],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"point\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"yintercept\":0.0,\n",
       "\"color\":\"#ff00ff\",\n",
       "\"linetype\":\"dashed\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"hline\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"density\",\n",
       "\"orientation\":\"y\",\n",
       "\"margin_side\":\"r\",\n",
       "\"color\":\"#118ed8\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"area\",\n",
       "\"fill\":\"#118ed8\",\n",
       "\"data\":{\n",
       "\"residual\":[-0.565433095581519,-0.5630686932994393,-0.5607042910173597,-0.5583398887352801,-0.5559754864532004,-0.5536110841711207,-0.5512466818890411,-0.5488822796069615,-0.5465178773248818,-0.5441534750428022,-0.5417890727607225,-0.5394246704786428,-0.5370602681965632,-0.5346958659144836,-0.5323314636324039,-0.5299670613503242,-0.5276026590682446,-0.525238256786165,-0.5228738545040853,-0.5205094522220056,-0.518145049939926,-0.5157806476578464,-0.5134162453757667,-0.511051843093687,-0.5086874408116074,-0.5063230385295278,-0.5039586362474481,-0.5015942339653685,-0.4992298316832888,-0.49686542940120915,-0.4945010271191295,-0.4921366248370499,-0.4897722225549702,-0.48740782027289054,-0.4850434179908109,-0.4826790157087313,-0.4803146134266516,-0.477950211144572,-0.47558580886249235,-0.4732214065804127,-0.470857004298333,-0.46849260201625337,-0.46612819973417374,-0.46376379745209406,-0.46139939517001444,-0.45903499288793476,-0.45667059060585513,-0.45430618832377545,-0.4519417860416958,-0.4495773837596162,-0.4472129814775365,-0.4448485791954569,-0.4424841769133772,-0.4401197746312976,-0.4377553723492179,-0.4353909700671383,-0.43302656778505866,-0.430662165502979,-0.4282977632208993,-0.42593336093881967,-0.42356895865674005,-0.42120455637466037,-0.41884015409258074,-0.4164757518105011,-0.41411134952842144,-0.41174694724634175,-0.40938254496426213,-0.4070181426821825,-0.4046537404001028,-0.4022893381180232,-0.3999249358359436,-0.3975605335538639,-0.3951961312717842,-0.3928317289897046,-0.39046732670762496,-0.3881029244255453,-0.38573852214346566,-0.38337411986138603,-0.38100971757930635,-0.37864531529722667,-0.37628091301514704,-0.3739165107330674,-0.37155210845098774,-0.36918770616890806,-0.36682330388682843,-0.3644589016047488,-0.3620944993226691,-0.3597300970405895,-0.3573656947585099,-0.3550012924764302,-0.3526368901943505,-0.3502724879122709,-0.34790808563019127,-0.3455436833481116,-0.34317928106603196,-0.34081487878395234,-0.33845047650187265,-0.336086074219793,-0.33372167193771335,-0.3313572696556337,-0.32899286737355404,-0.3266284650914744,-0.3242640628093948,-0.3218996605273151,-0.31953525824523543,-0.3171708559631558,-0.3148064536810762,-0.3124420513989965,-0.3100776491169169,-0.3077132468348372,-0.30534884455275757,-0.3029844422706779,-0.30062003998859826,-0.29825563770651864,-0.29589123542443896,-0.29352683314235933,-0.29116243086027965,-0.28879802857820003,-0.28643362629612035,-0.2840692240140407,-0.2817048217319611,-0.2793404194498814,-0.2769760171678018,-0.2746116148857221,-0.2722472126036425,-0.2698828103215628,-0.2675184080394832,-0.2651540057574035,-0.2627896034753239,-0.26042520119324425,-0.25806079891116457,-0.25569639662908494,-0.25333199434700526,-0.25096759206492564,-0.24860318978284596,-0.24623878750076633,-0.24387438521868665,-0.24150998293660703,-0.2391455806545274,-0.23678117837244772,-0.2344167760903681,-0.23205237380828841,-0.2296879715262088,-0.2273235692441291,-0.22495916696204948,-0.22259476467996986,-0.22023036239789018,-0.21786596011581055,-0.21550155783373087,-0.21313715555165125,-0.21077275326957157,-0.20840835098749194,-0.20604394870541232,-0.20367954642333264,-0.201315144141253,-0.19895074185917333,-0.1965863395770937,-0.19422193729501402,-0.1918575350129344,-0.18949313273085472,-0.1871287304487751,-0.18476432816669547,-0.1823999258846158,-0.18003552360253616,-0.17767112132045648,-0.17530671903837686,-0.17294231675629718,-0.17057791447421755,-0.16821351219213787,-0.16584910991005825,-0.16348470762797862,-0.16112030534589894,-0.15875590306381931,-0.15639150078173963,-0.15402709849966,-0.15166269621758033,-0.1492982939355007,-0.14693389165342108,-0.1445694893713414,-0.14220508708926177,-0.1398406848071821,-0.1398406848071821,-0.13747628252510247,-0.13511188024302279,-0.13274747796094316,-0.13038307567886354,-0.12801867339678386,-0.12565427111470423,-0.12328986883262455,-0.12092546655054492,-0.11856106426846524,-0.11619666198638562,-0.11383225970430594,-0.11146785742222631,-0.10910345514014669,-0.10673905285806701,-0.10437465057598738,-0.1020102482939077,-0.09964584601182808,-0.0972814437297484,-0.09491704144766877,-0.09255263916558909,-0.09018823688350946,-0.08782383460142984,-0.08545943231935016,-0.08309503003727053,-0.08073062775519085,-0.07836622547311123,-0.07600182319103155,-0.07363742090895192,-0.0712730186268723,-0.06890861634479262,-0.06654421406271299,-0.06417981178063337,-0.061815409498553686,-0.059451007216474006,-0.057086604934394325,-0.054722202652314755,-0.052357800370235075,-0.049993398088155394,-0.047628995806075825,-0.045264593523996144,-0.04290019124191646,-0.04053578895983678,-0.03817138667775721,-0.03580698439567753,-0.03344258211359785,-0.031078179831518282,-0.0287137775494386,-0.02634937526735892,-0.02398497298527924,-0.02162057070319967,-0.01925616842111999,-0.01689176613904031,-0.01689176613904031,-0.01452736385696074,-0.01216296157488106,-0.009798559292801379,-0.007434157010721698,-0.0050697547286421285,-0.002705352446562448,-3.4095016448276727E-4,0.0020234521175968023,0.004387854399676483,0.0067522566817561636,0.009116658963835844,0.011481061245915414,0.013845463527995094,0.016209865810074775,0.018574268092154456,0.020938670374234025,0.023303072656313706,0.025667474938393386,0.028031877220472956,0.030396279502552637,0.03276068178463232,0.035125084066712,0.03748948634879157,0.03985388863087125,0.04221829091295093,0.0445826931950305,0.04694709547711018,0.04931149775918986,0.05167590004126954,0.05404030232334911,0.05640470460542879,0.05876910688750847,0.06113350916958804,0.06349791145166772,0.0658623137337474,0.06822671601582708,0.07059111829790665,0.07295552057998633,0.07531992286206601,0.0776843251441457,0.08004872742622526,0.08241312970830494,0.08477753199038462,0.0871419342724642,0.08950633655454387,0.09187073883662356,0.09423514111870324,0.0965995434007828,0.09896394568286249,0.10132834796494217,0.10369275024702174,0.10605715252910142,0.1084215548111811,0.11078595709326078,0.11315035937534035,0.11551476165742003,0.11787916393949971,0.12024356622157928,0.12260796850365896,0.12497237078573864,0.12497237078573864,0.12733677306781832,0.1297011753498979,0.13206557763197757,0.13442997991405725,0.13679438219613682,0.1391587844782165,0.14152318676029618,0.14388758904237586,0.14625199132445543,0.1486163936065351,0.1509807958886148,0.15334519817069436,0.15570960045277404,0.15807400273485372,0.1604384050169334,0.16280280729901297,0.16516720958109266,0.16753161186317234,0.16989601414525202,0.1722604164273316,0.17462481870941127,0.17698922099149095,0.17935362327357052,0.1817180255556502,0.18408242783772988,0.18644683011980956,0.18881123240188913,0.1911756346839688,0.1935400369660485,0.19590443924812806,0.19826884153020774,0.20063324381228742,0.2029976460943671,0.20536204837644667,0.20772645065852635,0.21009085294060603,0.2124552552226856,0.21481965750476528,0.21718405978684496,0.21954846206892464,0.2219128643510042,0.2242772666330839,0.22664166891516357,0.22900607119724325,0.23137047347932282,0.2337348757614025,0.23609927804348219,0.23846368032556176,0.24082808260764144,0.24319248488972112,0.2455568871718008,0.24792128945388037,0.25028569173596005,0.25265009401803973,0.2550144963001193,0.257378898582199,0.25974330086427866,0.26210770314635834,0.2644721054284379,0.2668365077105176,0.26920090999259727,0.27156531227467684,0.2739297145567565,0.2762941168388362,0.2786585191209159,0.28102292140299545,0.28338732368507513,0.2857517259671548,0.2881161282492344,0.29048053053131406,0.29284493281339374,0.2952093350954734,0.297573737377553,0.2999381396596327,0.30230254194171235,0.3046669442237919,0.3070313465058716,0.3093957487879513,0.31176015107003097,0.31412455335211054,0.3164889556341902,0.3188533579162699,0.3212177601983496,0.32358216248042915,0.32594656476250883,0.3283109670445885,0.3306753693266681,0.33303977160874776,0.33540417389082744,0.3377685761729071,0.3401329784549867,0.34249738073706637,0.34486178301914605,0.3472261853012256,0.3495905875833053,0.351954989865385,0.35431939214746466,0.35668379442954423,0.3590481967116239,0.3614125989937036,0.36377700127578316,0.36614140355786284,0.3685058058399425,0.3708702081220222,0.3732346104041018,0.37559901268618145,0.37796341496826114,0.3803278172503408,0.3826922195324204,0.38505662181450007,0.38742102409657975,0.3897854263786593,0.392149828660739,0.3945142309428187,0.39687863322489836,0.39924303550697793,0.4016074377890576,0.4039718400711373,0.40633624235321686,0.40870064463529654,0.4110650469173762,0.4134294491994559,0.41579385148153547,0.41815825376361515,0.42052265604569483,0.4228870583277744,0.4252514606098541,0.42761586289193376,0.42998026517401344,0.432344667456093,0.4347090697381728,0.43707347202025226,0.43943787430233194,0.4418022765844116,0.4441666788664913,0.446531081148571,0.44889548343065067,0.45125988571273035,0.4536242879948098,0.4559886902768895,0.45835309255896917,0.46071749484104885,0.4630818971231285,0.4654462994052082,0.4678107016872879,0.47017510396936735,0.47253950625144703,0.4749039085335267,0.4772683108156064,0.47963271309768607,0.48199711537976575,0.48436151766184543,0.4867259199439249,0.48909032222600457,0.49145472450808425,0.49381912679016393,0.4961835290722436,0.4985479313543233,0.500912333636403,0.5032767359184824,0.5056411382005621,0.5080055404826418,0.5103699427647215,0.5127343450468012,0.5150987473288808,0.5174631496109605,0.51982755189304,0.5221919541751197,0.5245563564571993,0.526920758739279,0.5292851610213587,0.5316495633034384,0.5340139655855181,0.5363783678675975,0.5387427701496772,0.5411071724317569,0.5434715747138366,0.5458359769959162,0.5482003792779959,0.5505647815600756,0.5529291838421551,0.5552935861242347,0.5576579884063144,0.5600223906883941,0.5623867929704738,0.5647511952525535,0.5671155975346331,0.5694799998167126,0.5718444020987923,0.574208804380872,0.5765732066629516,0.5789376089450313,0.581302011227111,0.5836664135091907,0.5860308157912704,0.5883952180733498,0.5907596203554295,0.5931240226375092,0.5954884249195889,0.5978528272016685,0.6002172294837482,0.6025816317658279,0.6049460340479074,0.607310436329987,0.6096748386120667,0.6120392408941464,0.6144036431762261,0.6167680454583058,0.6191324477403854,0.6214968500224649,0.6238612523045446,0.6262256545866243,0.628590056868704,0.6309544591507836,0.6333188614328633,0.635683263714943,0.6380476659970225,0.6404120682791021,0.6427764705611818],\n",
       "\"petal_length\":[0.06369062959121824,0.06523785862023584,0.06681002156591372,0.06840931378349398,0.07003799080353539,0.07169834521838545,0.07339268225265115,0.07512329426489503,0.07689243445008612,0.07870229003191406,0.08055495525056434,0.08245240446465323,0.08439646569544128,0.0863887949469646,0.0884308516371584,0.09052387547226841,0.09266886508978599,0.09486655878378344,0.09711741761092252,0.09942161115566166,0.10177900620947385,0.10418915859142472,0.10665130830653835,0.10916437820433744,0.11172697626315414,0.11433740158671957,0.11699365415859667,0.1196934483577416,0.12243423019538573,0.12521319819003154,0.12802732775426356,0.13087339892478594,0.13374802722618184,0.1366476974198945,0.13956879985332704,0.1425076690902821,0.14546062447360497,0.14842401224430682,0.1513942488189554,0.15436786480903578,0.157341549352557,0.16031219431958926,0.16327693794978146,0.16623320748128342,0.16917876033688212,0.17211172344446282,0.1750306302850096,0.17793445528204158,0.18082264517140273,0.18369514701936318,0.18655243258969664,0.18939551879634708,0.19222598401709085,0.19504598008470897,0.19785823981516135,0.20066607997655622,0.20347339964783906,0.20628467396151226,0.2091049432698832,0.2119397978187696,0.21479535805575678,0.21767825074162137,0.22059558107283977,0.22355490105991319,0.226564174440096,0.2296317384337425,0.2327662626805964,0.2359767057156819,0.23927226936387977,0.2426623514475818,0.2461564972130146,0.24976434988777205,0.25349560078490396,0.25735993936754703,0.2613670036827181,0.26552633156359057,0.26984731298661546,0.27433914395328596,0.27901078224659676,0.28387090538942,0.288927871106494,0.29418968056374495,0.29966394462858403,0.3053578533629554,0.31127814892756417,0.3174311020412709,0.3238224921043753,0.3304575910588306,0.33734115102255724,0.34447739569939856,0.3518700155311094,0.3595221665233869,0.36743647264471185,0.37561503166484156,0.38405942426951595,0.3927707262595069,0.40174952361584204,0.41099593018899055,0.420509607748353,0.4302897881095469,0.4403352970410672,0.45064457963896803,0.4612157268483587,0.4720465028039735,0.483134372658781,0.4944765305697223,0.5060699275131767,0.5179112986096888,0.5299971896478546,0.542323982510918,0.5548879192266025,0.5676851243808517,0.5807116256592298,0.5939633723057764,0.6074362513176595,0.6211261012249479,0.6350287233379004,0.6491398903789621,0.663455352452927,0.6779708403459577,0.6926820661820938,0.7075847215038854,0.7226744728816568,0.737946955192887,0.7533977627490378,0.7690224384812545,0.7848164614282007,0.8007752327985311,0.8168940609064549,0.8331681453013831,0.8495925604309689,0.8661622391910043,0.8828719567249766,0.8997163148404413,0.9166897274086947,0.9337864071080116,0.9510003538593343,0.9683253452863376,0.985754929509604,1.0032824205572755,1.0209008966422328,1.03860320151892,1.056381949091778,1.0742295314023351,1.0921381300738071,1.110099731241288,1.1281061439427331,1.1461490218918557,1.1642198884993047,1.1823101649539165,1.200411201122247,1.2185143089725683,1.2366107981801668,1.254692013524358,1.2727493736454065,1.2907744106916865,1.3087588103549093,1.3266944517644024,1.3445734466908776,1.362388177496274,1.3801313332593141,1.3977959435067897,1.4153754089882329,1.4328635289468503,1.4502545243621434,1.46754305666932,1.4847242414977098,1.501793657013721,1.518747346504126,1.5355818148910716,1.5522940189316388,1.568881350920591,1.5853416157851912,1.6016730015343517,1.617874043100668,1.6339435796919144,1.6498807058478402,1.6656847164776338,1.6813550462324232,1.6968912036450021,1.7122927005444437,1.7122927005444437,1.7275589773261788,1.7426893247269488,1.7576828028187486,1.7725381579953656,1.7872537387785372,1.8018274113180015,1.816256475499555,1.8305375826075154,1.8446666555119684,1.8586388123664768,1.8724482948080636,1.8860884016479167,1.8995514290281215,1.9128286179964773,1.9259101104179812,1.9387849140979612,1.9514408779376493,1.9638646778789681,1.976041814320758,1.987956621605072,1.9995922900784047,2.01093090113093,2.021953475506053,2.0326400350549596,2.0429696779859774,2.052920667528548,2.0624705337963802,2.0715961884962577,2.0802740519882335,2.088480192061791,2.096190473651738,2.1033807185793196,2.1100268742693156,2.1161051902646903,2.1215924012381944,2.1264659150869147,2.1307040045925048,2.134286001038663,2.137192488099424,2.1394054942486695,2.1409086818940835,2.1416875314087824,2.1417295182218385,2.141024281135844,2.1395637800659597,2.137342441440876,2.134357289572006,2.1306080623826573,2.126097309993802,2.120830474786272,2.1148159517003857,2.1080651276914115,2.1080651276914115,2.100592399432022,2.0924151685389347,2.083553813798742,2.0740316400753573,2.063874803796272,2.0531122151349273,2.041775417229186,2.0298984429989178,2.0175176503464436,2.004671536739633,1.9914005343861512,1.9777467874064398,1.963753912600169,1.9494667455737678,1.934931074153518,1.9201933611473583,1.9053004586377171,1.8902993160858197,1.8752366846037452,1.8601588198036059,1.8451111856623026,1.8301381618457981,1.815282756918061,1.8005863298175115,1.7860883219180004,1.7718260019033414,1.7578342255745971,1.744145212579641,1.730788341905763,1.717789967810431,1.7051732576842333,1.6929580531457091,1.6811607554621373,1.669794236175623,1.658867773592337,1.6483870155665954,1.6383539687830806,1.628767014512095,1.6196209505865646,1.6109070591277053,1.6026131993310182,1.594723924417463,1.5872206216582547,1.5800816741973986,1.5732826432254388,1.56679646890238,1.560593688288542,1.5546426684203714,1.5489098525647569,1.5433600176008915,1.537956540413729,1.532661671137758,1.5274368110643886,1.5222427930205236,1.5170401620396436,1.5117894541794008,1.5064514713907478,1.500987550412201,1.4953598237478076,1.4895314708879803,1.4895314708879803,1.4834669580469277,1.4771322648179632,1.4704950962867847,1.4635250792914882,1.4561939416749623,1.4484756735387334,1.440346669675654,1.4317858525302534,1.4227747752085773,1.4132977042320323,1.4033416819007485,1.3928965682994854,1.3819550631417954,1.3705127078045833,1.3585678680540039,1.3461216981037158,1.3331780867768317,1.3197435866624208,1.3058273272654903,1.2914409132453715,1.2765983089207287,1.2613157102899273,1.2456114058728005,1.2295056277241108,1.2130203940002646,1.196179344479247,1.1790075704398602,1.1615314403004824,1.143778422400378,1.1257769062787326,1.1075560237688242,1.089145471177824,1.070575333767583,1.051875913689198,1.0330775624551511,1.0142105189582484,0.995304753967309,0.9763898219466097,0.9574947209601652,0.9386477613339449,0.9198764436598825,0.9012073466357277,0.8826660251451343,0.8642769188934702,0.8460632718273325,0.8280470624800705,0.8102489453023309,0.7926882029560597,0.7753827094729964,0.758348904104727,0.7416017756211011,0.7251548567475777,0.709020228369999,0.6932085330775971,0.6777289975619011,0.6625894633407614,0.6477964252330941,0.6333550769712318,0.6192693633041576,0.6055420379163606,0.592174726463804,0.5791679940105,0.5665214161365661,0.5542336529814581,0.5423025254842752,0.5307250930867365,0.5194977321735443,0.5086162145393538,0.4980757851913926,0.4878712388218152,0.4779969943139618,0.46844716668162845,0.45921563588005737,0.4502961119712455,0.4416821961741229,0.43336743738168726,0.42534538378195647,0.41760962927709167,0.4101538544547506,0.4029718619271261,0.3960576059155819,0.3894052160217629,0.3830090151888343,0.37686353191852145,0.37096350687018065,0.36530389402662145,0.35987985666716693,0.3546867584409203,0.34972014988177896,0.34497575075089854,0.34044942863157324,0.33613717423542677,0.3320350739070326,0.3281392798363268,0.32444597850419016,0.32095135789624485,0.31765157402314725,0.3145427172825004,0.3116207791880484,0.30888161997624525,0.30632093757886264,0.30393423842337064,0.30171681049078863,0.2996636990240384,0.29776968523907377,0.2960292683467857,0.29443665114651274,0.29298572940257606,0.29167008516427745,0.29048298413794094,0.2894173771675111,0.28846590582864584,0.28762091209079094,0.28687445195304523,0.28621831291329586,0.28564403508667513,0.2851429357493608,0.2847061370475216,0.28432459657919545,0.2839891405293479,0.2836904990155438,0.28341934328370416,0.28316632438041217,0.2829221129201554,0.2826774395627095,0.2824231358174011,0.2821501747970828,0.28184971155500405,0.2815131226520786,0.28113204461997315,0.28069841100655024,0.2802044877140864,0.2796429063668725,0.27900669547284407,0.27828930917328326,0.2774846534049206,0.2765871093294823,0.27559155391641255,0.27449337759474346,0.27328849891948503,0.27197337622611284,0.2705450162734125,0.2690009798998437,0.26733938474146945,0.2655589050801927,0.2636587689094196,0.26163875232025513,0.25949917132489975,0.2572408712450677,0.25486521380207194,0.2523740620517837,0.24976976331215506,0.2470551302335222,0.24423342016270644,0.24130831295120786,0.23828388735575667,0.23516459617642207,0.23195524027358347,0.2286609416006101,0.22528711538429144,0.2218394415801287,0.21832383572475617,0.21474641930315025,0.21111348974411684,0.20743149015388235,0.20370697889460804,0.1999465991123211,0.19615704831716738,0.19234504811803863,0.18851731421345932,0.1846805267411165,0.1808413010894498,0.17700615927620736,0.17318150200067292,0.1693735814782197,0.1655884751678136,0.161832060504848,0.15810999075312412,0.15442767209066693,0.15079024204423616,0.14720254938668278,0.1436691356095561,0.14019421808045548,0.13678167499040642,0.1334350321909648,0.13015745201370751,0.126951724156246,0.12382025870887406,0.12076508138445945,0.1177878310012764,0.11488975925420658,0.11207173279427067,0.1093342376198918,0.10667738576583598,0.10410092425760531,0.10160424628040052,0.09918640449284596,0.0968461263967452,0.09458183165544018,0.09239165123517844,0.09027344822647661,0.08822484018608971,0.0862432228250884,0.0843257948549497,0.08246958379170224,0.08067147250821824,0.07892822631690072,0.07723652035939796,0.07559296707671197,0.07399414353222544,0.07243661836179446,0.07091697812915414,0.06943185287141755,0.0679779406283709,0.06655203076045513,0.0651510258736602,0.06377196218486694,0.06241202817826185,0.06106858142210553],\n",
       "\"..quantile..\":[0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"axis_title_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_title_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_ticks_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis\":{\n",
       "\"blank\":true\n",
       "},\n",
       "\"axis_line_y\":{\n",
       "\"blank\":false\n",
       "}\n",
       "}\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"YZw3rv\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();    \n",
       "   </script>"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "residualPlot(iris_dat, \"petal_length\", \"petal_width\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a1d74c3c",
   "metadata": {},
   "source": [
    "## Scatter plot (`method='none'`)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "0e93987e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"obpLUS\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"mapping\":{\n",
       "\"x\":\"petal_length\",\n",
       "\"y\":\"residual\"\n",
       "},\n",
       "\"data\":{\n",
       "\"residual\":[0.2,0.2,0.2,0.2,0.2,0.4,0.3,0.2,0.2,0.1,0.2,0.2,0.1,0.1,0.2,0.4,0.4,0.3,0.3,0.3,0.2,0.4,0.2,0.5,0.2,0.2,0.4,0.2,0.2,0.2,0.2,0.4,0.1,0.2,0.1,0.2,0.2,0.1,0.2,0.2,0.3,0.3,0.2,0.6,0.4,0.3,0.2,0.2,0.2,0.2,1.4,1.5,1.5,1.3,1.5,1.3,1.6,1.0,1.3,1.4,1.0,1.5,1.0,1.4,1.3,1.4,1.5,1.0,1.5,1.1,1.8,1.3,1.5,1.2,1.3,1.4,1.4,1.7,1.5,1.0,1.1,1.0,1.2,1.6,1.5,1.6,1.5,1.3,1.3,1.3,1.2,1.4,1.2,1.0,1.3,1.2,1.3,1.3,1.1,1.3,2.5,1.9,2.1,1.8,2.2,2.1,1.7,1.8,1.8,2.5,2.0,1.9,2.1,2.0,2.4,2.3,1.8,2.2,2.3,1.5,2.3,2.0,2.0,1.8,2.1,1.8,1.8,1.8,2.1,1.6,1.9,2.0,2.2,1.5,1.4,2.3,2.4,1.8,1.8,2.1,2.4,2.3,1.9,2.3,2.5,2.3,1.9,2.0,2.3,1.8],\n",
       "\"petal_length\":[1.4,1.4,1.3,1.5,1.4,1.7,1.4,1.5,1.4,1.5,1.5,1.6,1.4,1.1,1.2,1.5,1.3,1.4,1.7,1.5,1.7,1.5,1.0,1.7,1.9,1.6,1.6,1.5,1.4,1.6,1.6,1.5,1.5,1.4,1.5,1.2,1.3,1.5,1.3,1.5,1.3,1.3,1.3,1.6,1.9,1.4,1.6,1.4,1.5,1.4,4.7,4.5,4.9,4.0,4.6,4.5,4.7,3.3,4.6,3.9,3.5,4.2,4.0,4.7,3.6,4.4,4.5,4.1,4.5,3.9,4.8,4.0,4.9,4.7,4.3,4.4,4.8,5.0,4.5,3.5,3.8,3.7,3.9,5.1,4.5,4.5,4.7,4.4,4.1,4.0,4.4,4.6,4.0,3.3,4.2,4.2,4.2,4.3,3.0,4.1,6.0,5.1,5.9,5.6,5.8,6.6,4.5,6.3,5.8,6.1,5.1,5.3,5.5,5.0,5.1,5.3,5.5,6.7,6.9,5.0,5.7,4.9,6.7,4.9,5.7,6.0,4.8,4.9,5.6,5.8,6.1,6.4,5.6,5.1,5.6,6.1,5.6,5.5,4.8,5.4,5.6,5.1,5.1,5.9,5.7,5.2,5.0,5.2,5.4,5.1]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"petal_width\"\n",
       "}],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"point\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"density\",\n",
       "\"orientation\":\"y\",\n",
       "\"margin_side\":\"r\",\n",
       "\"color\":\"#118ed8\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"area\",\n",
       "\"fill\":\"#118ed8\",\n",
       "\"data\":{\n",
       "\"residual\":[0.1,0.10469667318982388,0.10939334637964776,0.11409001956947162,0.1187866927592955,0.12348336594911938,0.12818003913894327,0.13287671232876713,0.137573385518591,0.1422700587084149,0.14696673189823875,0.15166340508806264,0.1563600782778865,0.16105675146771037,0.16575342465753423,0.17045009784735812,0.17514677103718201,0.17984344422700588,0.18454011741682974,0.1892367906066536,0.1939334637964775,0.1986301369863014,0.20332681017612525,0.2080234833659491,0.212720156555773,0.21741682974559687,0.22211350293542076,0.22681017612524462,0.23150684931506849,0.23620352250489238,0.24090019569471624,0.24559686888454013,0.250293542074364,0.25499021526418786,0.2596868884540118,0.2643835616438356,0.2690802348336595,0.27377690802348337,0.27847358121330723,0.28317025440313115,0.28786692759295496,0.2925636007827789,0.29726027397260274,0.3019569471624266,0.3066536203522505,0.31135029354207433,0.31604696673189825,0.3207436399217221,0.325440313111546,0.3301369863013699,0.3348336594911937,0.3395303326810176,0.3442270058708415,0.34892367906066535,0.35362035225048927,0.3583170254403131,0.363013698630137,0.3677103718199609,0.3724070450097847,0.37710371819960864,0.38180039138943245,0.38649706457925637,0.3911937377690803,0.3958904109589041,0.400587084148728,0.4052837573385518,0.40998043052837574,0.41467710371819966,0.41937377690802347,0.4240704500978474,0.4287671232876712,0.4334637964774951,0.43816046966731903,0.44285714285714284,0.44755381604696676,0.45225048923679056,0.4569471624266145,0.4616438356164384,0.4663405088062622,0.47103718199608613,0.47573385518590994,0.48043052837573386,0.4851272015655578,0.4898238747553816,0.4945205479452055,0.4992172211350293,0.5039138943248532,0.5086105675146771,0.513307240704501,0.5180039138943249,0.5227005870841487,0.5273972602739726,0.5320939334637965,0.5367906066536203,0.5414872798434442,0.546183953033268,0.550880626223092,0.5555772994129159,0.5602739726027397,0.5649706457925636,0.5696673189823874,0.5743639921722113,0.5790606653620353,0.5837573385518591,0.588454011741683,0.5931506849315068,0.5978473581213307,0.6025440313111545,0.6072407045009784,0.6119373776908024,0.6166340508806262,0.6213307240704501,0.6260273972602739,0.6307240704500978,0.6354207436399217,0.6401174168297455,0.6448140900195695,0.6495107632093933,0.6495107632093933,0.6542074363992172,0.6589041095890411,0.6636007827788649,0.6682974559686888,0.6729941291585126,0.6776908023483366,0.6823874755381605,0.6870841487279843,0.6917808219178082,0.696477495107632,0.7011741682974559,0.7058708414872799,0.7105675146771037,0.7152641878669276,0.7199608610567514,0.7246575342465753,0.7293542074363992,0.734050880626223,0.738747553816047,0.7434442270058708,0.7481409001956947,0.7528375733855186,0.7575342465753424,0.7622309197651663,0.7669275929549901,0.771624266144814,0.776320939334638,0.7810176125244618,0.7857142857142857,0.7904109589041095,0.7951076320939334,0.7998043052837573,0.8045009784735812,0.8091976516634051,0.8138943248532289,0.8185909980430528,0.8232876712328767,0.8279843444227005,0.8326810176125244,0.8373776908023483,0.8420743639921722,0.8467710371819961,0.8514677103718199,0.8561643835616438,0.8608610567514676,0.8655577299412915,0.8702544031311155,0.8749510763209393,0.8796477495107632,0.884344422700587,0.8890410958904109,0.8937377690802348,0.8984344422700586,0.9031311154598826,0.9078277886497064,0.9125244618395303,0.9172211350293542,0.921917808219178,0.9266144814090019,0.9313111545988257,0.9360078277886497,0.9407045009784736,0.9454011741682974,0.9500978473581213,0.9547945205479451,0.959491193737769,0.964187866927593,0.9688845401174168,0.9735812133072407,0.9782778864970645,0.9829745596868884,0.9876712328767123,0.9923679060665361,0.99706457925636,1.001761252446184,1.0064579256360078,1.0111545988258317,1.0158512720156556,1.0205479452054795,1.0252446183953035,1.0299412915851271,1.034637964774951,1.039334637964775,1.044031311154599,1.0487279843444228,1.0534246575342465,1.0581213307240704,1.0628180039138944,1.0675146771037183,1.0722113502935422,1.076908023483366,1.0816046966731898,1.0863013698630137,1.0909980430528377,1.0956947162426616,1.1003913894324855,1.1050880626223092,1.109784735812133,1.114481409001957,1.119178082191781,1.1238747553816049,1.1285714285714286,1.1332681017612525,1.1379647749510764,1.1426614481409003,1.1473581213307242,1.152054794520548,1.1567514677103719,1.1614481409001958,1.1661448140900197,1.1708414872798436,1.1755381604696673,1.1802348336594912,1.1849315068493151,1.189628180039139,1.194324853228963,1.1990215264187867,1.2037181996086106,1.2084148727984345,1.2131115459882584,1.2178082191780824,1.222504892367906,1.22720156555773,1.2318982387475539,1.2365949119373778,1.2412915851272017,1.2459882583170254,1.2506849315068493,1.2553816046966733,1.2600782778864972,1.264774951076321,1.2694716242661448,1.2741682974559687,1.2788649706457926,1.2835616438356166,1.2882583170254405,1.2929549902152642,1.297651663405088,1.302348336594912,1.307045009784736,1.3117416829745598,1.3164383561643835,1.3211350293542075,1.3258317025440314,1.3305283757338553,1.3352250489236792,1.339921722113503,1.3446183953033268,1.3493150684931507,1.3540117416829747,1.3587084148727986,1.3634050880626223,1.3681017612524462,1.3681017612524462,1.3727984344422701,1.377495107632094,1.382191780821918,1.3868884540117417,1.3915851272015656,1.3962818003913895,1.4009784735812134,1.4056751467710373,1.410371819960861,1.415068493150685,1.4197651663405089,1.4244618395303328,1.4291585127201567,1.4338551859099804,1.4385518590998043,1.4432485322896282,1.4479452054794522,1.452641878669276,1.4573385518590998,1.4620352250489237,1.4667318982387476,1.4714285714285715,1.4761252446183954,1.4808219178082191,1.485518590998043,1.490215264187867,1.494911937377691,1.4996086105675148,1.5043052837573385,1.5090019569471624,1.5136986301369864,1.5183953033268103,1.5230919765166342,1.527788649706458,1.5324853228962818,1.5371819960861057,1.5418786692759296,1.5465753424657536,1.5512720156555773,1.5559686888454012,1.560665362035225,1.565362035225049,1.570058708414873,1.5747553816046966,1.5794520547945206,1.5841487279843445,1.5888454011741684,1.5935420743639923,1.598238747553816,1.60293542074364,1.6076320939334638,1.6123287671232878,1.6170254403131117,1.6217221135029354,1.6264187866927593,1.6311154598825832,1.6358121330724071,1.640508806262231,1.6452054794520548,1.6499021526418787,1.6545988258317026,1.6592954990215265,1.6639921722113504,1.6686888454011741,1.673385518590998,1.678082191780822,1.6827788649706459,1.6874755381604698,1.6921722113502935,1.6968688845401174,1.7015655577299413,1.7062622309197653,1.7109589041095892,1.7156555772994129,1.7203522504892368,1.7250489236790607,1.7297455968688846,1.7344422700587085,1.7391389432485322,1.7438356164383562,1.74853228962818,1.753228962818004,1.757925636007828,1.7626223091976516,1.7673189823874755,1.7720156555772995,1.7767123287671234,1.7814090019569473,1.786105675146771,1.790802348336595,1.7954990215264188,1.8001956947162427,1.8048923679060667,1.8095890410958904,1.8142857142857143,1.8189823874755382,1.8236790606653621,1.828375733855186,1.828375733855186,1.8330724070450097,1.8377690802348337,1.8424657534246576,1.8471624266144815,1.8518590998043054,1.856555772994129,1.861252446183953,1.865949119373777,1.8706457925636009,1.8753424657534248,1.8800391389432485,1.8847358121330724,1.8894324853228963,1.8941291585127202,1.8988258317025442,1.903522504892368,1.9082191780821918,1.9129158512720157,1.9176125244618396,1.9223091976516635,1.9270058708414874,1.9317025440313111,1.936399217221135,1.941095890410959,1.945792563600783,1.9504892367906068,1.9551859099804305,1.9598825831702544,1.9645792563600784,1.9692759295499023,1.9739726027397262,1.9786692759295499,1.9833659491193738,1.9880626223091977,1.9927592954990216,1.9974559686888456,2.002152641878669,2.006849315068493,2.011545988258317,2.016242661448141,2.0209393346379647,2.0256360078277886,2.0303326810176126,2.0350293542074365,2.0397260273972604,2.0444227005870843,2.049119373776908,2.0538160469667317,2.0585127201565556,2.0632093933463795,2.0679060665362035,2.0726027397260274,2.0772994129158513,2.081996086105675,2.086692759295499,2.091389432485323,2.0960861056751465,2.100782778864971,2.1054794520547944,2.1101761252446183,2.114872798434442,2.119569471624266,2.12426614481409,2.128962818003914,2.133659491193738,2.138356164383562,2.1430528375733857,2.1477495107632096,2.152446183953033,2.157142857142857,2.161839530332681,2.166536203522505,2.171232876712329,2.1759295499021527,2.1806262230919766,2.1853228962818005,2.1900195694716245,2.1947162426614484,2.199412915851272,2.2041095890410958,2.2088062622309197,2.2135029354207436,2.2181996086105675,2.2228962818003914,2.2275929549902154,2.2322896281800393,2.236986301369863,2.241682974559687,2.2463796477495106,2.2510763209393345,2.2557729941291584,2.2604696673189824,2.2651663405088063,2.26986301369863,2.274559686888454,2.279256360078278,2.283953033268102,2.288649706457926,2.2933463796477493,2.2980430528375733,2.302739726027397,2.307436399217221,2.312133072407045,2.316829745596869,2.321526418786693,2.3262230919765168,2.3309197651663407,2.3356164383561646,2.340313111545988,2.345009784735812,2.349706457925636,2.35440313111546,2.3590998043052838,2.3637964774951077,2.3684931506849316,2.3731898238747555,2.3778864970645794,2.3825831702544034,2.387279843444227,2.3919765166340508,2.3966731898238747,2.4013698630136986,2.4060665362035225,2.4107632093933464,2.4154598825831703,2.4201565557729943,2.424853228962818,2.429549902152642,2.4342465753424656,2.4389432485322895,2.4436399217221134,2.4483365949119373,2.4530332681017613,2.457729941291585,2.462426614481409,2.467123287671233,2.471819960861057,2.476516634050881,2.4812133072407043,2.4859099804305282,2.490606653620352,2.495303326810176,2.5],\n",
       "\"..quantile..\":[0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\n",
       "\"petal_length\":[0.43216790173203323,0.43591927241652334,0.43956711416618066,0.44310844972461383,0.4465403836766512,0.44986010669150556,0.45306489965854646,0.4561521377073971,0.45911929410433505,0.4619639440171961,0.46468376814126866,0.46727655617892905,0.46974021016605777,0.47207274763867324,0.4742723046334254,0.4763371385161008,0.4782656306325374,0.4800562887768051,0.4817077494718623,0.4832187800583501,0.484588280587554,0.4858152855150711,0.4868989651920574,0.4878386271514728,0.4886337171871191,0.4892838202237956,0.4897886609772535,0.4901481044032038,0.49036215593501764,0.49043096151024884,0.4903548073865406,0.49013411974798043,0.48976946410336725,0.4892615444783065,0.48861120240353784,0.4878194157022137,0.4868872970794079,0.4858160925174163,0.48460717948088017,0.48326206493607465,0.48178238318920164,0.48016989354869244,0.4784264778170245,0.47655413761777976,0.4745549915640413,0.4724312722744129,0.4701853232433395,0.4678195955725196,0.4653366445705319,0.4627391262279357,0.46002979357533413,0.4572114929319889,0.454287160052824,0.4512598161816528,0.4481325640186581,0.4449085836101821,0.44159112816896207,0.43818351983296605,0.43468914537103764,0.43111145184347466,0.42745394222574334,0.4237201710033943,0.4199137397462266,0.4160382926696781,0.4120975121912389,0.4080951144896868,0.40403484507467663,0.39992047437416994,0.3957557933469418,0.3915446091272815,0.387290740708751,0.3829980146736954,0.3786702609749557,0.37431130877599544,0.3699249823554361,0.36551509708169744,0.3610854554632096,0.35663984327939335,0.35218202579729235,0.3477157440785008,0.34324471138071644,0.33877260965795003,0.3343030861631736,0.3298397501568019,0.3253861697242166,0.3209458687051607,0.3165223237375422,0.3121189614179421,0.3077391555807582,0.30338622469768356,0.29906342939887803,0.29477397011695816,0.29052098485460864,0.2863075470763844,0.2821366637249726,0.2780112733619439,0.2739342444327708,0.2699083736556344,0.26593638453332435,0.26202092598728133,0.2581645711126468,0.2543698160529539,0.25063907899289883,0.24697469926744678,0.24337893658535614,0.23985397036499934,0.23640189918026658,0.233024740314113,0.22972442941724044,0.22650282026923382,0.2233616846393753,0.2203027122442497,0.21732751079916313,0.21443760616029678,0.21163444255445887,0.20891938289323447,0.20629370916824535,0.2037586229242367,0.2037586229242367,0.2013152458066182,0.19896462018010191,0.19670770981502433,0.19454540063795736,0.19247850154319116,0.19050774526168435,0.1886337892840863,0.18685721683445866,0.18517853789134703,0.1835981902528829,0.1821165406426419,0.18073388585302463,0.1794504539229715,0.178266405346893,0.17718183431173404,0.17619676995917563,0.17531117767004037,0.17452496036802523,0.1738379598399882,0.1732499580700688,0.17276067858501998,0.17236978780820744,0.17207689641981988,0.17188156072092406,0.17178328399909013,0.1717815178934017,0.17187566375676186,0.17206507401350563,0.1723490535104157,0.17272686085934344,0.1731977097697355,0.17376077036945536,0.17441517051239971,0.17515999707149846,0.17599429721578824,0.17691707967035789,0.17792731595803532,0.17902394162182034,0.18020585742713252,0.181471930543056,0.18282099570185387,0.18425185633612468,0.18576328569305559,0.18735402792533287,0.18902279915835452,0.19076828853347438,0.19258915922711506,0.19448404944564315,0.1964515733960237,0.19849032223231777,0.20059886497819288,0.20277574942569093,0.20501950301057095,0.2073286336646226,0.20970163064542457,0.2121369653440862,0.21463309207158432,0.21718844882437077,0.21980145802999998,0.22247052727355968,0.2251940500057851,0.22797040623376005,0.23079796319517082,0.23367507601713433,0.23660008836065324,0.23957133305180514,0.24258713270080412,0.24564580031009992,0.24874563987274576,0.25188494696221586,0.25506200931498063,0.2582751074070727,0.2615225150259321,0.2648024998388408,0.2681133239592263,0.2714532445121321,0.27482051420016634,0.27821338187118155,0.2816300930889839,0.2850688907083003,0.2885280154552412,0.29200570651445146,0.2955002021241125,0.2990097401799205,0.302532558849123,0.30606689719565083,0.30961099581731427,0.31316309749599697,0.3167214478617078,0.32028429607127523,0.3238498955024183,0.3274165044638377,0.3309823869218935,0.33454581324435967,0.3381050609616522,0.34165841554584475,0.34520417120768093,0.34874063171171854,0.35226611120960244,0.35577893509141667,0.3592774408549138,0.36275997899233486,0.3662249138944469,0.3696706247712687,0.37309550658890167,0.37649797102172944,0.3798764474191781,0.3832293837860938,0.38655524777569733,0.38985252769397655,0.39311973351425966,0.39635539790061985,0.3995580772386575,0.40272635267210843,0.4058588311436397,0.40895414643809247,0.4120109602263508,0.41502796310793993,0.4180038756503659,0.42093744942315303,0.42382746802444693,0.4266727480980184,0.42947214033841563,0.4322245304820067,0.43492884028154455,0.4375840284619479,0.44018909165486614,0.4427430653096451,0.44524502457825405,0.4476940851717858,0.45008940418605403,0.4524301808939331,0.45471565750201215,0.4569451198692138,0.4591178981850742,0.46123336760535644,0.4632909488428072,0.4652901087108923,0.4672303606183824,0.4691112650127976,0.4709324297707697,0.4726935105334733,0.4743942109854019,0.47603428307482953,0.4776135271744832,0.47913179218097585,0.48058897555178515,0.4819850232786147,0.48331992979614646,0.4845937378253478,0.48580653815062874,0.48695846933030074,0.48804971733996266,0.48804971733996266,0.48908051514858397,0.49005114222723184,0.49096192399053107,0.4918132311711715,0.4926054791278758,0.49333912708746774,0.49401467732182414,0.4946326742606688,0.4951937035413602,0.495698390996939,0.4961474015839468,0.49654143825160363,0.4968812407541783,0.4971675844084576,0.4974012787984633,0.4975831664296226,0.49771412133482035,0.49779504763483584,0.4978268780558446,0.49781057240673693,0.49774711601919513,0.4976375181534911,0.497482810373151,0.4972840448916347,0.49704229289437685,0.4967586428394718,0.4964341987404863,0.4960700784348112,0.495667411841117,0.4952273392094382,0.494751009367462,0.49423957796661616,0.49369420573153905,0.4931160567165215,0.4925062965724778,0.49186609082798016,0.49119660318787056,0.4904989938528632,0.4897744178635698,0.4890240234722201,0.4882489505453511,0.4874503290005984,0.48662927728064204,0.48578690086726045,0.4849242908383132,0.4840425224703568,0.4831426538894906,0.4822257247728314,0.4812927551029352,0.4803447439773103,0.4793826684749684,0.47840748258187354,0.4774201161769116,0.4764214740798669,0.47541243516272497,0.4743938515253955,0.47336654773683506,0.47233132014230883,0.47128893623738294,0.4702401341090367,0.4691856219441052,0.4681260776050942,0.4670621482731875,0.46599445015814744,0.4649235682745642,0.46385005628380216,0.4627744364007549,0.46169719936441944,0.46061880447108505,0.459539679668808,0.45846022171168327,0.4573807963722814,0.4563017387104759,0.4552233533967699,0.4541459150880938,0.4530696688539414,0.45199483065060453,0.4509215878411604,0.4498500997587909,0.44878049831090844,0.44771288862154485,0.4466473497093177,0.44558393519831924,0.44452267405917684,0.44346357137752374,0.4424066091470874,0.4413517470846039,0.4402989234637423,0.4392480559652452,0.4381990425405034,0.43715176228580466,0.4361060763245288,0.43506182869461174,0.43401884723864403,0.432976944494031,0.43193591858071234,0.4308955540840085,0.42985562293024593,0.42985562293024593,0.42881588525290243,0.42777609024711183,0.4267359770104534,0.42569527536808877,0.42465370668038244,0.423610984631291,0.42256681599590884,0.4215209013856884,0.42047293596997304,0.4194226101726281,0.4183696103426613,0.4173136193978804,0.41625431744075475,0.4151913823457934,0.4141244903178756,0.4130533164211138,0.4119775350779502,0.4108968205383433,0.4098108473189892,0.40871929061269446,0.4076218266681117,0.40651813314017393,0.40540788941169237,0.4042907768866812,0.4031664792560844,0.40203468273669285,0.40089507628411297,0.39974735178077364,0.3985912042000086,0.397426331747362,0.39625243598031523,0.3950692219077201,0.39387639807026326,0.39267367660335445,0.39146077328387924,0.39023740756227715,0.38900330258146815,0.38775818518414246,0.38650178590997813,0.3852338389843326,0.383954082299987,0.38266225739348664,0.3813581094176446,0.3800413871117283,0.37871184277085146,0.3773692322160368,0.376013314766407,0.37464385321489624,0.3732606138088395,0.37186336623674077,0.37045188362245596,0.3690259425279767,0.36758532296591806,0.3661298084227489,0.3646591858937322,0.363173245930443,0.36167178270168127,0.3601545940684698,0.358621481673781,0.3570722510475137,0.3555067117271624,0.3539246773945317,0.35232596602874605,0.3507104000757095,0.3490778066340845,0.34742801765775355,0.3457608701746381,0.3440762065216589,0.3423738745955165,0.3406537281189011,0.33891562692163313,0.3371594372361583,0.33538503200674424,0.3335922912116257,0.33178110219729134,0.3299513600240164,0.32810296782167464,0.32623583715481436,0.32434988839589357,0.3224450511055401,0.32052126441863327,0.31857847743495715,0.316616649613139,0.3146357511665455,0.3126357634597729,0.3106166794043461,0.3085785038522154,0.3065212539856256,0.3044449597019167,0.30234966399181523,0.30023542330977243,0.2981023079349046,0.29595040232111475,0.29377980543497334,0.2915906310799722,0.2893830082057786,0.28715708120115696,0.284913010169255,0.28265097118399124,0.28037115652633166,0.2780737748992837,0.2757590516204932,0.2734272287913889,0.2710785654418723,0.2687133376496237,0.26633183863315313,0.26393437881780435,0.2615212858739843,0.2590929047269717,0.2566495975377296,0.2541917436542364,0.25171973953291715,0.24923399862985046,0.2467349512615011,0.24422304443482118,0.2416987416466383,0.23916252265233703,0.23661488320393118,0.23405633475769477,0.23148740415161517,0.22890863325301236,0.2263205785767432,0.2237238108744962,0.22111891469576064,0.21850648792112604,0.21588714126864758,0.21326149777407977,0.21063019224585727,0.20799387069576009,0.2053531897462723,0.20270881601570043,0.20006142548217226,0.19741170282769888,0.19476034076352486,0.19210803933804435,0.18945550522860133,0.18680345101853105,0.1841525944608372,0.18150365772992824,0.17885736666286367,0.17621444999158797,0.17357563856764013,0.17094166458085125]\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"name\":\"classic\"\n",
       "}\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"obpLUS\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();    \n",
       "   </script>"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "residualPlot(iris_dat, \"petal_length\", \"petal_width\", method=\"none\", hline=false) + \n",
    "    themeClassic()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "5333ee04",
   "metadata": {},
   "source": [
    "## Change geom type"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "789186f2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"ADBp41\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"mapping\":{\n",
       "\"x\":\"petal_length\",\n",
       "\"y\":\"residual\"\n",
       "},\n",
       "\"data\":{\n",
       "},\n",
       "\"ggsize\":{\n",
       "\"width\":600.0,\n",
       "\"height\":300.0\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"petal_width residual\"\n",
       "}],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "\"fill\":\"..count..\"\n",
       "},\n",
       "\"stat\":\"bin2d\",\n",
       "\"position\":\"identity\",\n",
       "\"binwidth\":[0.19666666666666668,0.19666666666666668],\n",
       "\"geom\":\"tile\",\n",
       "\"data\":{\n",
       "\"..count..\":[1.0,3.0,1.0,15.0,3.0,9.0,8.0,4.0,1.0,2.0,1.0,1.0,1.0,1.0,2.0,2.0,1.0,2.0,1.0,2.0,4.0,1.0,1.0,3.0,3.0,4.0,2.0,3.0,7.0,1.0,1.0,4.0,1.0,3.0,3.0,1.0,4.0,1.0,2.0,1.0,4.0,1.0,2.0,1.0,1.0,2.0,1.0,3.0,3.0,2.0,1.0,1.0,1.0,2.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.0,1.0,1.0,1.0,1.0],\n",
       "\"residual\":[0.22123357108514774,0.024566904418481084,-0.17209976224818563,0.024566904418481084,0.22123357108514774,-0.17209976224818563,0.024566904418481084,0.22123357108514774,-0.17209976224818563,0.024566904418481084,0.22123357108514774,-0.17209976224818563,0.024566904418481084,0.22123357108514774,0.024566904418481084,-0.17209976224818563,0.22123357108514774,-0.17209976224818563,-0.36876642891485234,-0.17209976224818563,0.024566904418481084,0.22123357108514774,-0.36876642891485234,-0.17209976224818563,0.024566904418481084,-0.17209976224818563,0.024566904418481084,-0.17209976224818563,0.024566904418481084,0.22123357108514774,-0.36876642891485234,-0.17209976224818563,0.024566904418481084,0.22123357108514774,-0.17209976224818563,0.024566904418481084,0.22123357108514774,0.4179002377518144,-0.17209976224818563,0.024566904418481084,0.22123357108514774,0.4179002377518144,0.6145669044184812,0.024566904418481084,0.22123357108514774,0.4179002377518144,-0.565433095581519,-0.17209976224818563,0.22123357108514774,0.4179002377518144,-0.36876642891485234,-0.17209976224818563,0.024566904418481084,0.22123357108514774,0.4179002377518144,-0.36876642891485234,0.024566904418481084,0.22123357108514774,0.4179002377518144,-0.36876642891485234,0.22123357108514774,0.4179002377518144,-0.36876642891485234,-0.36876642891485234,-0.36876642891485234,-0.17209976224818563,-0.17209976224818563],\n",
       "\"petal_length\":[1.0,1.1966666666666668,1.3933333333333333,1.3933333333333333,1.3933333333333333,1.59,1.59,1.59,1.7866666666666666,1.7866666666666666,1.7866666666666666,1.9833333333333334,1.9833333333333334,2.966666666666667,3.3600000000000003,3.556666666666667,3.556666666666667,3.7533333333333334,3.95,3.95,3.95,3.95,4.1466666666666665,4.1466666666666665,4.1466666666666665,4.343333333333334,4.343333333333334,4.540000000000001,4.540000000000001,4.540000000000001,4.736666666666666,4.736666666666666,4.736666666666666,4.736666666666666,4.933333333333334,4.933333333333334,4.933333333333334,4.933333333333334,5.130000000000001,5.130000000000001,5.130000000000001,5.130000000000001,5.130000000000001,5.326666666666667,5.326666666666667,5.326666666666667,5.523333333333333,5.523333333333333,5.523333333333333,5.523333333333333,5.720000000000001,5.720000000000001,5.720000000000001,5.720000000000001,5.720000000000001,5.916666666666667,5.916666666666667,5.916666666666667,5.916666666666667,6.113333333333334,6.113333333333334,6.113333333333334,6.3100000000000005,6.506666666666667,6.703333333333334,6.703333333333334,6.9]\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"yintercept\":0.0,\n",
       "\"color\":\"#ff00ff\",\n",
       "\"linetype\":\"dashed\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"hline\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "\"y\":\"..density..\"\n",
       "},\n",
       "\"stat\":\"bin\",\n",
       "\"margin_side\":\"t\",\n",
       "\"color\":\"#118ed8\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"stack\",\n",
       "\"binwidth\":0.19666666666666668,\n",
       "\"geom\":\"histogram\",\n",
       "\"fill\":\"#118ed8\",\n",
       "\"data\":{\n",
       "\"..density..\":[0.03615819209039548,0.10847457627118644,0.6870056497175141,0.7593220338983051,0.14463276836158193,0.07231638418079096,0.0,0.0,0.0,0.0,0.03615819209039548,0.0,0.07231638418079096,0.10847457627118644,0.07231638418079096,0.28926553672316385,0.25310734463276835,0.21694915254237288,0.28926553672316385,0.28926553672316385,0.3254237288135593,0.43389830508474575,0.14463276836158193,0.1807909604519774,0.3254237288135593,0.1807909604519774,0.1807909604519774,0.03615819209039548,0.03615819209039548,0.10847457627118644,0.03615819209039548,0.0],\n",
       "\"petal_length\":[0.9606666666666668,1.1573333333333335,1.354,1.5506666666666669,1.7473333333333336,1.9440000000000002,2.140666666666667,2.3373333333333335,2.5340000000000003,2.730666666666667,2.9273333333333333,3.1240000000000006,3.320666666666667,3.517333333333334,3.7140000000000004,3.9106666666666667,4.107333333333334,4.304,4.5006666666666675,4.697333333333334,4.894,5.090666666666667,5.287333333333334,5.484,5.680666666666667,5.8773333333333335,6.074000000000001,6.270666666666667,6.467333333333333,6.664000000000001,6.860666666666667,7.057333333333334]\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "\"x\":\"..density..\"\n",
       "},\n",
       "\"stat\":\"bin\",\n",
       "\"orientation\":\"y\",\n",
       "\"margin_side\":\"r\",\n",
       "\"color\":\"#118ed8\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"stack\",\n",
       "\"binwidth\":0.19666666666666668,\n",
       "\"geom\":\"histogram\",\n",
       "\"fill\":\"#118ed8\",\n",
       "\"data\":{\n",
       "\"residual\":[-0.6047664289148522,-0.40809976224818556,-0.21143309558151885,-0.014766428914852137,0.18190023775181452,0.3785669044184812,0.5752335710851479,0.7719002377518145],\n",
       "\"..density..\":[0.04414245245847869,0.26485471475087213,1.5891282885052327,2.6485471475087214,1.4567009311297967,0.44142452458478687,0.17656980983391476,0.0]\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"axis_title_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_title_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_ticks_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis\":{\n",
       "\"blank\":true\n",
       "},\n",
       "\"axis_line_y\":{\n",
       "\"blank\":false\n",
       "}\n",
       "}\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"ADBp41\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();    \n",
       "   </script>"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "residualPlot(iris_dat, \"petal_length\", \"petal_width\", geom=\"tile\", marginal=\"hist:tr\") + ggsize(600, 300)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d016ce73",
   "metadata": {},
   "source": [
    "## Change method"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "bfa1f2bb",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"8uxbGd\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"mapping\":{\n",
       "\"x\":\"petal_length\",\n",
       "\"y\":\"residual\"\n",
       "},\n",
       "\"data\":{\n",
       "\"residual\":[-0.033333333333326,-0.033333333333326,1.304512053934559E-15,-0.01666666666666633,-0.033333333333326,0.2081480168999188,0.06666666666667398,-0.01666666666666633,-0.033333333333326,-0.11666666666666634,-0.01666666666666633,-5.551115123125783E-17,-0.133333333333326,null,null,0.18333333333333368,0.20000000000000132,0.06666666666667398,0.10814801689991876,0.08333333333333365,0.008148016899918786,0.18333333333333368,null,0.3081480168999188,0.005241084660751072,-5.551115123125783E-17,0.19999999999999996,-0.01666666666666633,-0.033333333333326,-5.551115123125783E-17,-5.551115123125783E-17,0.18333333333333368,-0.11666666666666634,-0.033333333333326,-0.11666666666666634,null,1.304512053934559E-15,-0.11666666666666634,1.304512053934559E-15,-0.01666666666666633,0.10000000000000128,0.10000000000000128,1.304512053934559E-15,0.3999999999999999,0.20524108466075108,0.06666666666667398,-5.551115123125783E-17,-0.033333333333326,-0.01666666666666633,-0.033333333333326,-4.263256414560601E-14,0.0,0.1441622117918,-0.19999999999999996,0.04690163662462621,-0.19999999999999996,0.19999999999995755,0.16523944342427666,-0.15309836337537375,0.007989708987080402,2.220446049250313E-16,-0.08780367235151942,-0.5,-4.263256414560601E-14,0.21147507604866145,-0.14395604056255018,0.0,-0.5658256520702443,0.0,-0.2920102910129194,0.44999999999999996,-0.19999999999999996,0.1441622117918,-0.2000000000000426,-0.2768688665976724,-0.14395604056255018,0.04999999999999982,0.28672099326131306,0.0,2.220446049250313E-16,-0.182955237490102,-0.18231839245880743,-0.19201029101291955,0.10000000000000009,0.0,0.10000000000000009,0.09999999999995746,-0.24395604056255005,-0.2658256520702442,-0.19999999999999996,-0.34395604056255014,-0.05309836337537388,-0.30000000000000004,0.16523944342427666,-0.2878036723515194,-0.38780367235151947,-0.2878036723515194,-0.2768688665976724,0.4827140283966842,-0.2658256520702442,0.0606549100109679,0.3999999999999999,-0.23789409390852612,-0.20520250974292664,-5.773159728050814E-15,0.42089552578105804,0.19999999999999996,-4.376499163072367E-13,-0.4000000000000059,0.09999999999999165,0.5,0.20153466408753196,0.19496221097005217,0.5867209932613131,0.8999999999999999,0.6015346640875319,-0.10503778902994787,0.1999999999999882,null,0.0867209932613131,0.20000000000000817,0.6441622117918,-1.199040866595169E-14,0.44416221179180004,8.43769498715119E-15,-0.6393450899890321,0.44999999999999996,0.44416221179180004,0.0947974902570734,-0.6000000000000059,-0.5000000000000084,0.49999999999943867,0.1947974902570735,0.0,-0.6052025097429268,-0.10000000000000853,0.3947974902570732,-0.10503778902994787,0.44999999999999996,0.2980294922198903,0.3947974902570732,0.7999999999999998,0.3999999999999999,-0.03789409390852638,0.40000000000000835,0.7030130566539199,0.486720993261313,0.40301305665392007,0.49802949221989,0.30000000000000004],\n",
       "\"petal_length\":[1.4,1.4,1.3,1.5,1.4,1.7,1.4,1.5,1.4,1.5,1.5,1.6,1.4,1.1,1.2,1.5,1.3,1.4,1.7,1.5,1.7,1.5,1.0,1.7,1.9,1.6,1.6,1.5,1.4,1.6,1.6,1.5,1.5,1.4,1.5,1.2,1.3,1.5,1.3,1.5,1.3,1.3,1.3,1.6,1.9,1.4,1.6,1.4,1.5,1.4,4.7,4.5,4.9,4.0,4.6,4.5,4.7,3.3,4.6,3.9,3.5,4.2,4.0,4.7,3.6,4.4,4.5,4.1,4.5,3.9,4.8,4.0,4.9,4.7,4.3,4.4,4.8,5.0,4.5,3.5,3.8,3.7,3.9,5.1,4.5,4.5,4.7,4.4,4.1,4.0,4.4,4.6,4.0,3.3,4.2,4.2,4.2,4.3,3.0,4.1,6.0,5.1,5.9,5.6,5.8,6.6,4.5,6.3,5.8,6.1,5.1,5.3,5.5,5.0,5.1,5.3,5.5,6.7,6.9,5.0,5.7,4.9,6.7,4.9,5.7,6.0,4.8,4.9,5.6,5.8,6.1,6.4,5.6,5.1,5.6,6.1,5.6,5.5,4.8,5.4,5.6,5.1,5.1,5.9,5.7,5.2,5.0,5.2,5.4,5.1]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"petal_width residual\"\n",
       "}],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"point\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"yintercept\":0.0,\n",
       "\"color\":\"#ff00ff\",\n",
       "\"linetype\":\"dashed\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"hline\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"density\",\n",
       "\"orientation\":\"y\",\n",
       "\"margin_side\":\"r\",\n",
       "\"color\":\"#118ed8\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"area\",\n",
       "\"fill\":\"#118ed8\",\n",
       "\"data\":{\n",
       "\"residual\":[-0.6393450899890321,-0.6363326729831826,-0.6333202559773333,-0.6303078389714839,-0.6272954219656346,-0.6242830049597852,-0.6212705879539357,-0.6182581709480864,-0.615245753942237,-0.6122333369363877,-0.6092209199305383,-0.6062085029246889,-0.6031960859188396,-0.6001836689129901,-0.5971712519071408,-0.5941588349012914,-0.591146417895442,-0.5881340008895927,-0.5851215838837432,-0.5821091668778939,-0.5790967498720445,-0.5760843328661951,-0.5730719158603458,-0.5700594988544964,-0.567047081848647,-0.5640346648427976,-0.5610222478369482,-0.5580098308310989,-0.5549974138252495,-0.5519849968194002,-0.5489725798135507,-0.5459601628077013,-0.542947745801852,-0.5399353287960026,-0.5369229117901532,-0.5339104947843039,-0.5308980777784544,-0.5278856607726051,-0.5248732437667557,-0.5218608267609063,-0.518848409755057,-0.5158359927492076,-0.5128235757433581,-0.5098111587375088,-0.5067987417316594,-0.5037863247258101,-0.5007739077199607,-0.4977614907141113,-0.49474907370826193,-0.4917366567024125,-0.4887242396965632,-0.4857118226907138,-0.4826994056848644,-0.47968698867901505,-0.4766745716731656,-0.4736621546673163,-0.4706497376614669,-0.4676373206556175,-0.46462490364976816,-0.46161248664391874,-0.45860006963806943,-0.45558765263222,-0.45257523562637064,-0.4495628186205213,-0.44655040161467185,-0.44353798460882254,-0.4405255676029731,-0.43751315059712376,-0.4345007335912744,-0.43148831658542497,-0.4284758995795756,-0.42546348257372624,-0.42245106556787687,-0.4194386485620275,-0.4164262315561781,-0.4134138145503287,-0.41040139754447935,-0.40738898053863,-0.4043765635327806,-0.4013641465269312,-0.39835172952108183,-0.39533931251523247,-0.39232689550938304,-0.3893144785035337,-0.3863020614976843,-0.38328964449183495,-0.3802772274859856,-0.3772648104801362,-0.3742523934742868,-0.3712399764684374,-0.36822755946258806,-0.3652151424567387,-0.36220272545088933,-0.3591903084450399,-0.35617789143919054,-0.3531654744333412,-0.3501530574274918,-0.34714064042164244,-0.344128223415793,-0.34111580640994366,-0.3381033894040943,-0.3350909723982449,-0.3320785553923955,-0.32906613838654614,-0.32605372138069677,-0.3230413043748474,-0.32002888736899804,-0.3170164703631486,-0.31400405335729925,-0.3109916363514499,-0.3079792193456005,-0.30496680233975115,-0.30195438533390173,-0.29894196832805237,-0.295929551322203,-0.29291713431635363,-0.28990471731050427,-0.28689230030465485,-0.2838798832988055,-0.2808674662929561,-0.27785504928710675,-0.2748426322812573,-0.27183021527540796,-0.2688177982695586,-0.26580538126370923,-0.26279296425785986,-0.25978054725201044,-0.2567681302461611,-0.2537557132403117,-0.25074329623446234,-0.24773087922861298,-0.24471846222276356,-0.2417060452169142,-0.23869362821106482,-0.23568121120521546,-0.2326687941993661,-0.22965637719351667,-0.2266439601876673,-0.22363154318181794,-0.22061912617596857,-0.21760670917011915,-0.21459429216426978,-0.21158187515842042,-0.20856945815257105,-0.2055570411467217,-0.20254462414087226,-0.1995322071350229,-0.19651979012917353,-0.19350737312332417,-0.1904949561174748,-0.18748253911162538,-0.184470122105776,-0.18145770509992665,-0.17844528809407728,-0.17543287108822792,-0.1724204540823785,-0.16940803707652913,-0.16639562007067976,-0.1633832030648304,-0.16037078605898097,-0.1573583690531316,-0.15434595204728224,-0.15133353504143288,-0.1483211180355835,-0.1453087010297341,-0.14229628402388472,-0.1392838670180353,-0.136271450012186,-0.13325903300633657,-0.13024661600048726,-0.12723419899463784,-0.12422178198878842,-0.1212093649829391,-0.11819694797708968,-0.11518453097124037,-0.11518453097124037,-0.11217211396539095,-0.10915969695954153,-0.10614727995369222,-0.1031348629478428,-0.10012244594199349,-0.09711002893614407,-0.09409761193029464,-0.09108519492444533,-0.08807277791859591,-0.0850603609127466,-0.08204794390689718,-0.07903552690104776,-0.07602310989519845,-0.07301069288934903,-0.06999827588349972,-0.0669858588776503,-0.06397344187180087,-0.06096102486595156,-0.05794860786010214,-0.05493619085425283,-0.05192377384840341,-0.04891135684255399,-0.04589893983670468,-0.042886522830855256,-0.039874105825005945,-0.036861688819156524,-0.0338492718133071,-0.030836854807457792,-0.02782443780160837,-0.02481202079575895,-0.02179960378990964,-0.018787186784060217,-0.015774769778210906,-0.012762352772361485,-0.009749935766512063,-0.006737518760662753,-0.0037251017548133314,-7.126847489640209E-4,0.0022997322568854006,0.005312149262734822,0.008324566268584133,0.011336983274433554,0.014349400280282865,0.017361817286132286,0.020374234291981708,0.023386651297831018,0.02639906830368044,0.02639906830368044,0.02941148530952975,0.03242390231537917,0.03543631932122859,0.038448736327077904,0.041461153332927325,0.044473570338776636,0.04748598734462606,0.05049840435047548,0.05351082135632479,0.05652323836217421,0.05953565536802352,0.06254807237387294,0.06556048937972236,0.06857290638557167,0.0715853233914211,0.0745977403972704,0.07761015740311983,0.08062257440896925,0.08363499141481856,0.08664740842066798,0.0896598254265174,0.09267224243236671,0.09568465943821614,0.09869707644406545,0.10170949344991487,0.10472191045576429,0.1077343274616136,0.11074674446746302,0.11375916147331233,0.11677157847916175,0.11978399548501117,0.12279641249086048,0.1258088294967099,0.12882124650255922,0.13183366350840864,0.13484608051425806,0.13785849752010737,0.1408709145259568,0.1438833315318061,0.14689574853765552,0.14990816554350495,0.15292058254935426,0.15593299955520368,0.158945416561053,0.1619578335669024,0.16497025057275183,0.16798266757860114,0.17099508458445056,0.17400750159029987,0.1770199185961493,0.18003233560199872,0.18304475260784803,0.18605716961369745,0.18906958661954687,0.19208200362539618,0.1950944206312456,0.1981068376370949,0.20111925464294433,0.20413167164879376,0.20413167164879376,0.20714408865464307,0.2101565056604925,0.2131689226663418,0.21618133967219122,0.21919375667804064,0.22220617368388995,0.22521859068973937,0.22823100769558868,0.2312434247014381,0.23425584170728753,0.23726825871313684,0.24028067571898626,0.24329309272483557,0.246305509730685,0.2493179267365344,0.2523303437423837,0.25534276074823314,0.25835517775408245,0.2613675947599319,0.2643800117657813,0.2673924287716306,0.27040484577748003,0.27341726278332934,0.27642967978917876,0.2794420967950282,0.2824545138008775,0.2854669308067269,0.2884793478125762,0.29149176481842565,0.29450418182427507,0.2975165988301244,0.3005290158359738,0.3035414328418232,0.30655384984767253,0.30956626685352195,0.31257868385937126,0.3155911008652207,0.3186035178710701,0.3216159348769194,0.32462835188276884,0.32764076888861815,0.33065318589446757,0.333665602900317,0.3366780199061663,0.3396904369120157,0.34270285391786504,0.34571527092371446,0.3487276879295639,0.3517401049354132,0.3547525219412626,0.3577649389471119,0.36077735595296145,0.36378977295881065,0.3668021899646601,0.3698146069705095,0.3728270239763589,0.37583944098220834,0.37885185798805754,0.38186427499390696,0.3848766919997564,0.3878891090056058,0.3909015260114552,0.3939139430173044,0.39692636002315385,0.39993877702900327,0.4029511940348527,0.4059636110407021,0.4089760280465513,0.41198844505240073,0.41500086205825015,0.4180132790640996,0.421025696069949,0.4240381130757982,0.4270505300816476,0.43006294708749704,0.43307536409334646,0.4360877810991959,0.4391001981050451,0.4421126151108945,0.4451250321167439,0.44813744912259335,0.45114986612844277,0.45416228313429197,0.4571747001401414,0.4601871171459908,0.46319953415184023,0.46621195115768965,0.46922436816353885,0.4722367851693883,0.4752492021752377,0.4782616191810871,0.48127403618693654,0.48428645319278574,0.48729887019863516,0.4903112872044846,0.493323704210334,0.4963361212161834,0.4993485382220326,0.502360955227882,0.5053733722337315,0.5083857892395809,0.5113982062454303,0.5144106232512795,0.5174230402571289,0.5204354572629784,0.5234478742688278,0.5264602912746772,0.5294727082805264,0.5324851252863758,0.5354975422922252,0.5385099592980747,0.5415223763039241,0.5445347933097733,0.5475472103156227,0.5505596273214721,0.5535720443273215,0.556584461333171,0.5595968783390202,0.5626092953448696,0.565621712350719,0.5686341293565684,0.5716465463624179,0.5746589633682673,0.5776713803741165,0.5806837973799659,0.5836962143858153,0.5867086313916647,0.5897210483975142,0.5927334654033634,0.5957458824092128,0.5987582994150622,0.6017707164209116,0.604783133426761,0.6077955504326102,0.6108079674384597,0.6138203844443091,0.6168328014501585,0.6198452184560079,0.6228576354618571,0.6258700524677066,0.628882469473556,0.6318948864794054,0.6349073034852548,0.637919720491104,0.6409321374969534,0.6439445545028029,0.6469569715086523,0.6499693885145017,0.6529818055203509,0.6559942225262003,0.6590066395320497,0.6620190565378992,0.6650314735437486,0.6680438905495978,0.6710563075554472,0.6740687245612966,0.677081141567146,0.6800935585729955,0.6831059755788447,0.6861183925846941,0.6891308095905435,0.6921432265963929,0.6951556436022424,0.6981680606080916,0.701180477613941,0.7041928946197904,0.7072053116256398,0.7102177286314892,0.7132301456373384,0.7162425626431879,0.7192549796490373,0.7222673966548867,0.7252798136607361,0.7282922306665853,0.7313046476724347,0.7343170646782842,0.7373294816841336,0.740341898689983,0.7433543156958322,0.7463667327016816,0.7493791497075311,0.7523915667133805,0.7554039837192299,0.7584164007250791,0.7614288177309285,0.7644412347367779,0.7674536517426274,0.7704660687484768,0.773478485754326,0.7764909027601754,0.7795033197660248,0.7825157367718742,0.7855281537777237,0.7885405707835729,0.7915529877894223,0.7945654047952717,0.7975778218011211,0.8005902388069706,0.80360265581282,0.8066150728186692,0.8096274898245186,0.812639906830368,0.8156523238362174,0.8186647408420669,0.8216771578479161,0.8246895748537655,0.8277019918596149,0.8307144088654643,0.8337268258713137,0.836739242877163,0.8397516598830124,0.8427640768888618,0.8457764938947112,0.8487889109005606,0.8518013279064098,0.8548137449122593,0.8578261619181087,0.8608385789239581,0.8638509959298075,0.8668634129356567,0.8698758299415061,0.8728882469473556,0.875900663953205,0.8789130809590544,0.8819254979649036,0.884937914970753,0.8879503319766024,0.8909627489824519,0.8939751659883013,0.8969875829941505,0.8999999999999999],\n",
       "\"petal_length\":[0.13736406316265615,0.14047603714787407,0.1435004187160544,0.14643068170152992,0.1492606749244229,0.15198465589881682,0.15459732186186462,0.15709383790705878,0.15946986203886543,0.1617215670018827,0.16384565877499538,0.16583939165910702,0.16770057992535062,0.16942760602858584,0.171019425427945,0.17247556809160383,0.1737961367963004,0.17498180236294666,0.17603379599751895,0.17695389893091806,0.17774442957236358,0.17840822840787923,0.17894864088840312,0.17936949856093662,0.17967509870093193,0.17987018270487445,0.17995991349892673,0.17994985221274376,0.17984593435745772,0.17965444573367523,0.17938199827951568,0.17903550605067456,0.17862216150460838,0.17814941223973937,0.17762493831841497,0.17705663027979,0.17645256792615205,0.17582099994397166,0.17517032439941513,0.17450907012761763,0.17384587901587703,0.17318948916337681,0.1725487188842276,0.17193245150666953,0.17134962090923025,0.17080919772455536,0.17032017613345696,0.16989156116537057,0.16953235641682476,0.1692515520965177,0.1690581133040232,0.1689609684488891,0.16896899771768778,0.1690910214983703,0.16933578867382457,0.1697119646997435,0.1702281193856788,0.17089271430235783,0.17171408974297292,0.172700451171158,0.17385985509379767,0.17520019430264525,0.17672918243514413,0.17845433781180225,0.1803829665152043,0.18252214468428732,0.18487870000703088,0.18745919240531642,0.19026989391747492,0.1933167677970887,0.1966054468609524,0.20014121113472605,0.20392896486173706,0.2079732129584541,0.2122780370192807,0.2168470709932465,0.22168347667569224,0.22678991917878696,0.23216854256544336,0.23782094585132468,0.24374815959887566,0.24995062334520962,0.25642816412156605,0.26317997633577206,0.27020460329988305,0.27749992069277685,0.28506312225140673,0.29289070798430594,0.3009784751966191,0.3093215126070954,0.31791419782405017,0.32675019842926184,0.3358224768961553,0.3451232995416823,0.35464424968021924,0.3643762451130636,0.3743095600490617,0.3844338515112341,0.39473819024152784,0.4052110960717313,0.41584057768394916,0.42661417663949686,0.4375190155115825,0.4485418499153625,0.4596691241897139,0.4708870304490115,0.4821815706910292,0.49353862161939027,0.5049440018160908,0.5163835408821087,0.5278431501519921,0.5393088945818145,0.5507670654089519,0.5622042531865766,0.5736074208052344,0.5849639761280535,0.5962618438842683,0.6074895364873252,0.6186362234680759,0.6296917992393859,0.6406469489353996,0.6514932120952575,0.6622230439867743,0.6728298743891213,0.683308163674232,0.6936534560435902,0.7038624297893087,0.7139329444556289,0.7238640847783,0.7336562012745873,0.7433109473456353,0.7528313127353674,0.7622216531665731,0.7714877159451853,0.7806366612888286,0.7896770790963,0.7986190008313413,0.807473906148276,0.8162547238399526,0.8249758266413185,0.8336530193765642,0.8423035198954556,0.8509459322072978,0.8596002111902767,0.8682876182319281,0.8770306671443175,0.8858530596975166,0.8947796101280293,0.9038361580068714,0.9130494688959291,0.9224471222822158,0.9320573863584035,0.9419090793149514,0.9520314169246237,0.962453846333685,0.9732058661254155,0.9843168328896071,0.9958157547151198,1.007731072219861,1.0200904279413197,1.032920425128884,1.0462463772035302,1.0600920493779833,1.0744793941578097,1.089428282667127,1.1049562339579513,1.1210781446656317,1.1378060215598793,1.155148719707811,1.1731116891077367,1.1916967327663033,1.210901779273351,1.2307206729747275,1.2511429848505986,1.2721538471726155,1.2721538471726155,1.293733814935635,1.3158587569370843,1.338499779208732,1.3616231832913066,1.3851904615830046,1.4091583316896683,1.4334788113596644,1.458099335203239,1.4829629139782872,1.5080083367763943,1.5331704159703687,1.5583802742926343,1.5835656729099548,1.6086513788501406,1.6335595696287653,1.658210272425323,1.6825218346767064,1.706411422498895,1.7297955429227112,1.7525905855436552,1.7747133788457756,1.7960817561715512,1.8166151260791534,1.836235041660003,1.8548657632869172,1.8724348092289806,1.8888734886055765,1.904117411259024,1.9181069693026442,1.9307877853470323,1.9421111227192416,1.9520342533632895,1.9605207795413102,1.9675409059368556,1.9730716592885382,1.9770970532462524,1.9796081967355834,1.9806033447301203,1.98008789095807,1.9780743026993841,1.9745819984543143,1.9696371698749426,1.9632725499398487,1.955527129910438,1.946445828128855,1.9360791141949651,1.9244825924882183,1.9244825924882183,1.9117165493742727,1.8978454687524144,1.8829375208553654,1.8670640294056173,1.8502989223620794,1.8327181715568404,1.8143992265260707,1.79542044778299,1.7758605446678275,1.7557980227426142,1.7353106454824963,1.7144749147538914,1.693365574269253,1.6720551398727996,1.6506134601480684,1.6291073104512364,1.6076000230699479,1.5861511557914836,1.5648162007413753,1.543646334929403,1.522688213518895,1.5019838064214044,1.4815702784164089,1.4614799126076452,1.4417400766572266,1.4223732308882369,1.4033969770178794,1.3848241459783321,1.3666629230022682,1.3489170078953825,1.331585808189965,1.314664662671486,1.2981450925948446,1.2820150777577393,1.2662593544757381,1.2508597324063078,1.2357954270971425,1.2210434050869374,1.2065787383638091,1.1923749649873538,1.1784044527042425,1.1646387624336905,1.1510490085675784,1.1376062131196594,1.1242816508685927,1.1110471827696535,1.097875575058984,1.0847408016412845,1.0716183275356868,1.0584853713539368,1.0453211449986242,1.0321070689952467,1.018826962108755,1.0054672041408543,0.992016871056679,0.9784678418461453,0.9648148767840778,0.9510556670114303,0.9371908556152031,0.9371908556152031,0.9232240306342426,0.9091616906595675,0.8950131839285989,0.8807906220302962,0.8665087695404683,0.8521849110913602,0.8378386975451672,0.8234919730858635,0.8091685851663083,0.7948941793472241,0.7806959811404941,0.7666025670213295,0.7526436268020863,0.7388497195655181,0.7252520253377058,0.7118820946420451,0.6987715980168347,0.6859520775019137,0.6734547020063167,0.6613100283611402,0.6495477697418759,0.6381965730147292,0.6272838064241276,0.6168353588959953,0.6068754520857609,0.5974264661534152,0.588508780102298,0.580140627375449,0.5723379672647586,0.5651143725552805,0.5584809337008585,0.5524461797086033,0.5470160157992804,0.5421936778086116,0.537979703201078,0.5343719184827606,0.531365442722908,0.528952706824698,0.5271234881235286,0.5258649598353705,0.52516175482755,0.5249960431388897,0.5253476226347482,0.5261940221442838,0.5275106163915897,0.5292707519985509,0.5314458838048449,0.5340057207190515,0.5369183802840828,0.540150551109976,0.543667662297494,0.5474340589471345,0.5514131828202808,0.5555677571927821,0.5598599749166459,0.5642516886833943,0.5687046024635357,0.5731804630812446,0.5776412508723783,0.5820493683680383,0.5863678259456765,0.5905604233957825,0.5945919263650171,0.5984282366566677,0.6020365553968087,0.6053855381097827,0.6084454407896015,0.6111882561046104,0.6135878389310399,0.6156200204766169,0.6172627103277954,0.6184959858328483,0.6193021683174252,0.61966588571849,0.6195741213159981,0.6190162483384288,0.617984050317393,0.616471727167099,0.614475887065502,0.6119955243145253,0.6090319834559003,0.6055889100159838,0.6016721883465228,0.5972898671178758,0.5924520731059458,0.5871709139932354,0.58146037097742,0.575336182047044,0.568815716842847,0.56191784407444,0.5546627925051764,0.5470720065528417,0.5391679975800158,0.5309741919654746,0.5225147770568038,0.51381454610439,0.5048987432683424,0.4957929097727009,0.4865227322557781,0.4771138943319205,0.4675919323386295,0.45798209619433145,0.44830921623648917,0.4385975768477263,0.4288707976097843,0.4191517226519575,0.40946231878291806,0.39982358291314024,0.39025545919026594,0.3807767661824646,0.37140513435590833,0.3621569540027845,0.3530473336865727,0.34409006918251717,0.3352976228041436,0.32668111292211904,0.31825031340058674,0.3100136625990451,0.30197828151564154,0.29415000058111324,0.2865333945520844,0.2791318248986538,0.27194748903456506,0.2649814756991695,0.2582338257691339,0.2517035977546214,0.24538893721952892,0.23928714935834564,0.23339477396313613,0.22770766202285944,0.22222105321341695,0.21692965356003385,0.21182771258340646,0.20690909927687584,0.20216737630313913,0.1975958718450046,0.1931877485947011,0.1889360694195682,0.1848338592977733,0.180874163175293,0.17705009945399358,0.17335490887948765,0.16978199865585858,0.16632498167161716,0.16297771077678258,0.15973430810419254,0.15658918947850642,0.15353708400346702,0.15057304896140938,0.14769248019847006,0.14489111820421224,0.14216505012526032,0.13951070797895923,0.13692486335497372,0.13440461891016475,0.13194739697510324,0.1295509255993185,0.12721322236703483,0.12493257631590715,0.12270752828838993,0.12053685003913027,0.11841952241244824,0.11635471289187511,0.11434175280916961,0.11238011448354174,0.11046938854331526,0.10860926166225458,0.10679949492160046,0.10503990298678491,0.10333033426513857,0.10167065218793225,0.10006071773707642,0.09850037331399787,0.09698942802584627,0.09552764444248384,0.09411472685688187,0.09275031106176986,0.091433955636837,0.09016513472361264,0.08894323224949337,0.08776753754835183,0.08663724231284538,0.08555143880302445,0.08450911922716153,0.08350917620391747,0.08255040421003551,0.08163150191468192,0.08075107530030096,0.0799076414703399,0.07909963304634526,0.07832540306061121,0.07758323025563374,0.07687132470793684,0.07618783370119835,0.07553084778182366,0.0748984069389831,0.07428850686041738,0.07369910522480691,0.07312812800095621,0.0725734757332449,0.07203302980151684,0.07150465865161676,0.07098622399994084,0.07047558702148142,0.06997061453576456,0.06946918520868942,0.06896919579049259,0.06846856741082796,0.06796525195125819,0.06745723851331527,0.06694255999676549,0.06641929979789749,0.06588559863166722,0.06533966147454226,0.06477976461706643,0.06420426280673176,0.06361159645291779,0.06300029885668339,0.06236900341931913,0.06171645077504121,0.06104149578527244,0.06034311432485303,0.059620409784466505,0.05887261920875748,0.05809911898622611,0.057299430005148706,0.05647322218960638,0.05562031833126369,0.0547406971358673,0.0538344954085133,0.05290200930851342],\n",
       "\"..quantile..\":[0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"axis_title_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_title_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_ticks_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis\":{\n",
       "\"blank\":true\n",
       "},\n",
       "\"axis_line_y\":{\n",
       "\"blank\":false\n",
       "}\n",
       "}\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"8uxbGd\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();    \n",
       "   </script>"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "residualPlot(iris_dat, \"petal_length\", \"petal_width\", method=\"loess\", span=.25, maxN=25)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a9118245",
   "metadata": {},
   "source": [
    "## Geometries customization"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "e4bb5312",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"ALv4Bg\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"mapping\":{\n",
       "\"x\":\"petal_length\",\n",
       "\"y\":\"residual\"\n",
       "},\n",
       "\"data\":{\n",
       "\"residual\":[-0.016472739982832107,-0.016472739982832107,0.025169173245708054,-0.05811465321137227,-0.016472739982832107,0.05860152033154742,0.08352726001716787,-0.05811465321137227,-0.016472739982832107,-0.15811465321137227,-0.05811465321137227,-0.09975656643991243,-0.11647273998283211,0.008452999702788316,0.06681108647424822,0.14188534678862774,0.22516917324570807,0.08352726001716787,-0.041398479668452615,0.04188534678862771,-0.1413984796684526,0.14188534678862774,0.15009491293132854,0.1586015203315474,-0.22468230612553292,-0.09975656643991243,0.10024343356008758,-0.05811465321137227,-0.016472739982832107,-0.09975656643991243,-0.09975656643991243,0.14188534678862774,-0.15811465321137227,-0.016472739982832107,-0.15811465321137227,0.06681108647424822,0.025169173245708054,-0.15811465321137227,0.025169173245708054,-0.05811465321137227,0.12516917324570803,0.12516917324570803,0.025169173245708054,0.30024343356008754,-0.024682306125532905,0.08352726001716787,-0.09975656643991243,-0.016472739982832107,-0.05811465321137227,-0.016472739982832107,-0.19065587652465754,-0.0073720500675771294,-0.17393970298173778,8.375160751237232E-4,-0.04901396329611707,-0.20737205006757709,0.009344123475342636,-0.00766909132509519,-0.24901396329611702,0.14247942930366375,-0.09095291778217551,0.11755368961804336,-0.2991624839248763,-0.19065587652465754,0.16740516898928437,-0.06573013683903728,-0.0073720500675771294,-0.34080439715341626,-0.0073720500675771294,-0.15752057069633607,0.16770221024680243,8.375160751237232E-4,-0.17393970298173778,-0.3906558765246575,-0.12408822361049676,-0.06573013683903728,-0.2322977897531977,-0.015581616210277982,-0.0073720500675771294,-0.09095291778217551,-0.11587865746779591,-0.17423674423925584,-0.057520570696336204,-0.157223529438818,-0.0073720500675771294,0.09262794993242296,-0.09065587652465745,-0.16573013683903715,-0.040804397153416216,8.375160751237232E-4,-0.26573013683903723,-0.14901396329611716,-0.09916248392487637,-0.00766909132509519,-0.0824463103819566,-0.1824463103819567,-0.0824463103819566,-0.12408822361049676,0.21725664836052538,-0.040804397153416216,0.36799925150432067,0.1427764705611818,0.009641164732860918,-0.16543309558151886,0.15128307796140117,-0.2818522278669202,0.19262794993242283,-0.4569264881812998,-0.24871692203859896,0.3263573382757805,0.2427764705611819,0.05949264410410149,0.17620881764702134,0.28441838378972206,0.6427764705611818,0.4594926441041014,-0.1237911823529787,-0.22349414109546029,-0.20677796755254096,-0.21558161621027794,0.292924991189941,0.3260602970182622,-0.42349414109546046,0.12606029701826227,0.09292499118994124,-0.3320007484956793,0.16770221024680243,0.12606029701826227,0.13456690441848118,-0.4487169220385989,-0.2736426617242196,-0.29856840140984,0.23456690441848127,-0.2572235294388181,-0.565433095581519,0.12635733827578033,0.434566904418481,-0.1237911823529787,0.16770221024680243,0.2178507308755615,0.434566904418481,0.5427764705611817,0.1427764705611818,0.20964116473286065,0.49292499118994115,0.5011345573326416,0.18441838378972197,0.20113455733264174,0.41785073087556124,0.042776470561181945],\n",
       "\"petal_length\":[1.4,1.4,1.3,1.5,1.4,1.7,1.4,1.5,1.4,1.5,1.5,1.6,1.4,1.1,1.2,1.5,1.3,1.4,1.7,1.5,1.7,1.5,1.0,1.7,1.9,1.6,1.6,1.5,1.4,1.6,1.6,1.5,1.5,1.4,1.5,1.2,1.3,1.5,1.3,1.5,1.3,1.3,1.3,1.6,1.9,1.4,1.6,1.4,1.5,1.4,4.7,4.5,4.9,4.0,4.6,4.5,4.7,3.3,4.6,3.9,3.5,4.2,4.0,4.7,3.6,4.4,4.5,4.1,4.5,3.9,4.8,4.0,4.9,4.7,4.3,4.4,4.8,5.0,4.5,3.5,3.8,3.7,3.9,5.1,4.5,4.5,4.7,4.4,4.1,4.0,4.4,4.6,4.0,3.3,4.2,4.2,4.2,4.3,3.0,4.1,6.0,5.1,5.9,5.6,5.8,6.6,4.5,6.3,5.8,6.1,5.1,5.3,5.5,5.0,5.1,5.3,5.5,6.7,6.9,5.0,5.7,4.9,6.7,4.9,5.7,6.0,4.8,4.9,5.6,5.8,6.1,6.4,5.6,5.1,5.6,6.1,5.6,5.5,4.8,5.4,5.6,5.1,5.1,5.9,5.7,5.2,5.0,5.2,5.4,5.1]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"petal_width residual\"\n",
       "}],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"color\":\"#feb24c\",\n",
       "\"size\":5.0,\n",
       "\"alpha\":0.3,\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"point\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"yintercept\":0.0,\n",
       "\"color\":\"#ff00ff\",\n",
       "\"linetype\":\"dashed\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"hline\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"density\",\n",
       "\"orientation\":\"y\",\n",
       "\"margin_side\":\"r\",\n",
       "\"color\":\"#feb24c\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"area\",\n",
       "\"fill\":\"#feb24c\",\n",
       "\"data\":{\n",
       "\"residual\":[-0.565433095581519,-0.5630686932994393,-0.5607042910173597,-0.5583398887352801,-0.5559754864532004,-0.5536110841711207,-0.5512466818890411,-0.5488822796069615,-0.5465178773248818,-0.5441534750428022,-0.5417890727607225,-0.5394246704786428,-0.5370602681965632,-0.5346958659144836,-0.5323314636324039,-0.5299670613503242,-0.5276026590682446,-0.525238256786165,-0.5228738545040853,-0.5205094522220056,-0.518145049939926,-0.5157806476578464,-0.5134162453757667,-0.511051843093687,-0.5086874408116074,-0.5063230385295278,-0.5039586362474481,-0.5015942339653685,-0.4992298316832888,-0.49686542940120915,-0.4945010271191295,-0.4921366248370499,-0.4897722225549702,-0.48740782027289054,-0.4850434179908109,-0.4826790157087313,-0.4803146134266516,-0.477950211144572,-0.47558580886249235,-0.4732214065804127,-0.470857004298333,-0.46849260201625337,-0.46612819973417374,-0.46376379745209406,-0.46139939517001444,-0.45903499288793476,-0.45667059060585513,-0.45430618832377545,-0.4519417860416958,-0.4495773837596162,-0.4472129814775365,-0.4448485791954569,-0.4424841769133772,-0.4401197746312976,-0.4377553723492179,-0.4353909700671383,-0.43302656778505866,-0.430662165502979,-0.4282977632208993,-0.42593336093881967,-0.42356895865674005,-0.42120455637466037,-0.41884015409258074,-0.4164757518105011,-0.41411134952842144,-0.41174694724634175,-0.40938254496426213,-0.4070181426821825,-0.4046537404001028,-0.4022893381180232,-0.3999249358359436,-0.3975605335538639,-0.3951961312717842,-0.3928317289897046,-0.39046732670762496,-0.3881029244255453,-0.38573852214346566,-0.38337411986138603,-0.38100971757930635,-0.37864531529722667,-0.37628091301514704,-0.3739165107330674,-0.37155210845098774,-0.36918770616890806,-0.36682330388682843,-0.3644589016047488,-0.3620944993226691,-0.3597300970405895,-0.3573656947585099,-0.3550012924764302,-0.3526368901943505,-0.3502724879122709,-0.34790808563019127,-0.3455436833481116,-0.34317928106603196,-0.34081487878395234,-0.33845047650187265,-0.336086074219793,-0.33372167193771335,-0.3313572696556337,-0.32899286737355404,-0.3266284650914744,-0.3242640628093948,-0.3218996605273151,-0.31953525824523543,-0.3171708559631558,-0.3148064536810762,-0.3124420513989965,-0.3100776491169169,-0.3077132468348372,-0.30534884455275757,-0.3029844422706779,-0.30062003998859826,-0.29825563770651864,-0.29589123542443896,-0.29352683314235933,-0.29116243086027965,-0.28879802857820003,-0.28643362629612035,-0.2840692240140407,-0.2817048217319611,-0.2793404194498814,-0.2769760171678018,-0.2746116148857221,-0.2722472126036425,-0.2698828103215628,-0.2675184080394832,-0.2651540057574035,-0.2627896034753239,-0.26042520119324425,-0.25806079891116457,-0.25569639662908494,-0.25333199434700526,-0.25096759206492564,-0.24860318978284596,-0.24623878750076633,-0.24387438521868665,-0.24150998293660703,-0.2391455806545274,-0.23678117837244772,-0.2344167760903681,-0.23205237380828841,-0.2296879715262088,-0.2273235692441291,-0.22495916696204948,-0.22259476467996986,-0.22023036239789018,-0.21786596011581055,-0.21550155783373087,-0.21313715555165125,-0.21077275326957157,-0.20840835098749194,-0.20604394870541232,-0.20367954642333264,-0.201315144141253,-0.19895074185917333,-0.1965863395770937,-0.19422193729501402,-0.1918575350129344,-0.18949313273085472,-0.1871287304487751,-0.18476432816669547,-0.1823999258846158,-0.18003552360253616,-0.17767112132045648,-0.17530671903837686,-0.17294231675629718,-0.17057791447421755,-0.16821351219213787,-0.16584910991005825,-0.16348470762797862,-0.16112030534589894,-0.15875590306381931,-0.15639150078173963,-0.15402709849966,-0.15166269621758033,-0.1492982939355007,-0.14693389165342108,-0.1445694893713414,-0.14220508708926177,-0.1398406848071821,-0.1398406848071821,-0.13747628252510247,-0.13511188024302279,-0.13274747796094316,-0.13038307567886354,-0.12801867339678386,-0.12565427111470423,-0.12328986883262455,-0.12092546655054492,-0.11856106426846524,-0.11619666198638562,-0.11383225970430594,-0.11146785742222631,-0.10910345514014669,-0.10673905285806701,-0.10437465057598738,-0.1020102482939077,-0.09964584601182808,-0.0972814437297484,-0.09491704144766877,-0.09255263916558909,-0.09018823688350946,-0.08782383460142984,-0.08545943231935016,-0.08309503003727053,-0.08073062775519085,-0.07836622547311123,-0.07600182319103155,-0.07363742090895192,-0.0712730186268723,-0.06890861634479262,-0.06654421406271299,-0.06417981178063337,-0.061815409498553686,-0.059451007216474006,-0.057086604934394325,-0.054722202652314755,-0.052357800370235075,-0.049993398088155394,-0.047628995806075825,-0.045264593523996144,-0.04290019124191646,-0.04053578895983678,-0.03817138667775721,-0.03580698439567753,-0.03344258211359785,-0.031078179831518282,-0.0287137775494386,-0.02634937526735892,-0.02398497298527924,-0.02162057070319967,-0.01925616842111999,-0.01689176613904031,-0.01689176613904031,-0.01452736385696074,-0.01216296157488106,-0.009798559292801379,-0.007434157010721698,-0.0050697547286421285,-0.002705352446562448,-3.4095016448276727E-4,0.0020234521175968023,0.004387854399676483,0.0067522566817561636,0.009116658963835844,0.011481061245915414,0.013845463527995094,0.016209865810074775,0.018574268092154456,0.020938670374234025,0.023303072656313706,0.025667474938393386,0.028031877220472956,0.030396279502552637,0.03276068178463232,0.035125084066712,0.03748948634879157,0.03985388863087125,0.04221829091295093,0.0445826931950305,0.04694709547711018,0.04931149775918986,0.05167590004126954,0.05404030232334911,0.05640470460542879,0.05876910688750847,0.06113350916958804,0.06349791145166772,0.0658623137337474,0.06822671601582708,0.07059111829790665,0.07295552057998633,0.07531992286206601,0.0776843251441457,0.08004872742622526,0.08241312970830494,0.08477753199038462,0.0871419342724642,0.08950633655454387,0.09187073883662356,0.09423514111870324,0.0965995434007828,0.09896394568286249,0.10132834796494217,0.10369275024702174,0.10605715252910142,0.1084215548111811,0.11078595709326078,0.11315035937534035,0.11551476165742003,0.11787916393949971,0.12024356622157928,0.12260796850365896,0.12497237078573864,0.12497237078573864,0.12733677306781832,0.1297011753498979,0.13206557763197757,0.13442997991405725,0.13679438219613682,0.1391587844782165,0.14152318676029618,0.14388758904237586,0.14625199132445543,0.1486163936065351,0.1509807958886148,0.15334519817069436,0.15570960045277404,0.15807400273485372,0.1604384050169334,0.16280280729901297,0.16516720958109266,0.16753161186317234,0.16989601414525202,0.1722604164273316,0.17462481870941127,0.17698922099149095,0.17935362327357052,0.1817180255556502,0.18408242783772988,0.18644683011980956,0.18881123240188913,0.1911756346839688,0.1935400369660485,0.19590443924812806,0.19826884153020774,0.20063324381228742,0.2029976460943671,0.20536204837644667,0.20772645065852635,0.21009085294060603,0.2124552552226856,0.21481965750476528,0.21718405978684496,0.21954846206892464,0.2219128643510042,0.2242772666330839,0.22664166891516357,0.22900607119724325,0.23137047347932282,0.2337348757614025,0.23609927804348219,0.23846368032556176,0.24082808260764144,0.24319248488972112,0.2455568871718008,0.24792128945388037,0.25028569173596005,0.25265009401803973,0.2550144963001193,0.257378898582199,0.25974330086427866,0.26210770314635834,0.2644721054284379,0.2668365077105176,0.26920090999259727,0.27156531227467684,0.2739297145567565,0.2762941168388362,0.2786585191209159,0.28102292140299545,0.28338732368507513,0.2857517259671548,0.2881161282492344,0.29048053053131406,0.29284493281339374,0.2952093350954734,0.297573737377553,0.2999381396596327,0.30230254194171235,0.3046669442237919,0.3070313465058716,0.3093957487879513,0.31176015107003097,0.31412455335211054,0.3164889556341902,0.3188533579162699,0.3212177601983496,0.32358216248042915,0.32594656476250883,0.3283109670445885,0.3306753693266681,0.33303977160874776,0.33540417389082744,0.3377685761729071,0.3401329784549867,0.34249738073706637,0.34486178301914605,0.3472261853012256,0.3495905875833053,0.351954989865385,0.35431939214746466,0.35668379442954423,0.3590481967116239,0.3614125989937036,0.36377700127578316,0.36614140355786284,0.3685058058399425,0.3708702081220222,0.3732346104041018,0.37559901268618145,0.37796341496826114,0.3803278172503408,0.3826922195324204,0.38505662181450007,0.38742102409657975,0.3897854263786593,0.392149828660739,0.3945142309428187,0.39687863322489836,0.39924303550697793,0.4016074377890576,0.4039718400711373,0.40633624235321686,0.40870064463529654,0.4110650469173762,0.4134294491994559,0.41579385148153547,0.41815825376361515,0.42052265604569483,0.4228870583277744,0.4252514606098541,0.42761586289193376,0.42998026517401344,0.432344667456093,0.4347090697381728,0.43707347202025226,0.43943787430233194,0.4418022765844116,0.4441666788664913,0.446531081148571,0.44889548343065067,0.45125988571273035,0.4536242879948098,0.4559886902768895,0.45835309255896917,0.46071749484104885,0.4630818971231285,0.4654462994052082,0.4678107016872879,0.47017510396936735,0.47253950625144703,0.4749039085335267,0.4772683108156064,0.47963271309768607,0.48199711537976575,0.48436151766184543,0.4867259199439249,0.48909032222600457,0.49145472450808425,0.49381912679016393,0.4961835290722436,0.4985479313543233,0.500912333636403,0.5032767359184824,0.5056411382005621,0.5080055404826418,0.5103699427647215,0.5127343450468012,0.5150987473288808,0.5174631496109605,0.51982755189304,0.5221919541751197,0.5245563564571993,0.526920758739279,0.5292851610213587,0.5316495633034384,0.5340139655855181,0.5363783678675975,0.5387427701496772,0.5411071724317569,0.5434715747138366,0.5458359769959162,0.5482003792779959,0.5505647815600756,0.5529291838421551,0.5552935861242347,0.5576579884063144,0.5600223906883941,0.5623867929704738,0.5647511952525535,0.5671155975346331,0.5694799998167126,0.5718444020987923,0.574208804380872,0.5765732066629516,0.5789376089450313,0.581302011227111,0.5836664135091907,0.5860308157912704,0.5883952180733498,0.5907596203554295,0.5931240226375092,0.5954884249195889,0.5978528272016685,0.6002172294837482,0.6025816317658279,0.6049460340479074,0.607310436329987,0.6096748386120667,0.6120392408941464,0.6144036431762261,0.6167680454583058,0.6191324477403854,0.6214968500224649,0.6238612523045446,0.6262256545866243,0.628590056868704,0.6309544591507836,0.6333188614328633,0.635683263714943,0.6380476659970225,0.6404120682791021,0.6427764705611818],\n",
       "\"..quantile..\":[0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\n",
       "\"petal_length\":[0.06369062959121824,0.06523785862023584,0.06681002156591372,0.06840931378349398,0.07003799080353539,0.07169834521838545,0.07339268225265115,0.07512329426489503,0.07689243445008612,0.07870229003191406,0.08055495525056434,0.08245240446465323,0.08439646569544128,0.0863887949469646,0.0884308516371584,0.09052387547226841,0.09266886508978599,0.09486655878378344,0.09711741761092252,0.09942161115566166,0.10177900620947385,0.10418915859142472,0.10665130830653835,0.10916437820433744,0.11172697626315414,0.11433740158671957,0.11699365415859667,0.1196934483577416,0.12243423019538573,0.12521319819003154,0.12802732775426356,0.13087339892478594,0.13374802722618184,0.1366476974198945,0.13956879985332704,0.1425076690902821,0.14546062447360497,0.14842401224430682,0.1513942488189554,0.15436786480903578,0.157341549352557,0.16031219431958926,0.16327693794978146,0.16623320748128342,0.16917876033688212,0.17211172344446282,0.1750306302850096,0.17793445528204158,0.18082264517140273,0.18369514701936318,0.18655243258969664,0.18939551879634708,0.19222598401709085,0.19504598008470897,0.19785823981516135,0.20066607997655622,0.20347339964783906,0.20628467396151226,0.2091049432698832,0.2119397978187696,0.21479535805575678,0.21767825074162137,0.22059558107283977,0.22355490105991319,0.226564174440096,0.2296317384337425,0.2327662626805964,0.2359767057156819,0.23927226936387977,0.2426623514475818,0.2461564972130146,0.24976434988777205,0.25349560078490396,0.25735993936754703,0.2613670036827181,0.26552633156359057,0.26984731298661546,0.27433914395328596,0.27901078224659676,0.28387090538942,0.288927871106494,0.29418968056374495,0.29966394462858403,0.3053578533629554,0.31127814892756417,0.3174311020412709,0.3238224921043753,0.3304575910588306,0.33734115102255724,0.34447739569939856,0.3518700155311094,0.3595221665233869,0.36743647264471185,0.37561503166484156,0.38405942426951595,0.3927707262595069,0.40174952361584204,0.41099593018899055,0.420509607748353,0.4302897881095469,0.4403352970410672,0.45064457963896803,0.4612157268483587,0.4720465028039735,0.483134372658781,0.4944765305697223,0.5060699275131767,0.5179112986096888,0.5299971896478546,0.542323982510918,0.5548879192266025,0.5676851243808517,0.5807116256592298,0.5939633723057764,0.6074362513176595,0.6211261012249479,0.6350287233379004,0.6491398903789621,0.663455352452927,0.6779708403459577,0.6926820661820938,0.7075847215038854,0.7226744728816568,0.737946955192887,0.7533977627490378,0.7690224384812545,0.7848164614282007,0.8007752327985311,0.8168940609064549,0.8331681453013831,0.8495925604309689,0.8661622391910043,0.8828719567249766,0.8997163148404413,0.9166897274086947,0.9337864071080116,0.9510003538593343,0.9683253452863376,0.985754929509604,1.0032824205572755,1.0209008966422328,1.03860320151892,1.056381949091778,1.0742295314023351,1.0921381300738071,1.110099731241288,1.1281061439427331,1.1461490218918557,1.1642198884993047,1.1823101649539165,1.200411201122247,1.2185143089725683,1.2366107981801668,1.254692013524358,1.2727493736454065,1.2907744106916865,1.3087588103549093,1.3266944517644024,1.3445734466908776,1.362388177496274,1.3801313332593141,1.3977959435067897,1.4153754089882329,1.4328635289468503,1.4502545243621434,1.46754305666932,1.4847242414977098,1.501793657013721,1.518747346504126,1.5355818148910716,1.5522940189316388,1.568881350920591,1.5853416157851912,1.6016730015343517,1.617874043100668,1.6339435796919144,1.6498807058478402,1.6656847164776338,1.6813550462324232,1.6968912036450021,1.7122927005444437,1.7122927005444437,1.7275589773261788,1.7426893247269488,1.7576828028187486,1.7725381579953656,1.7872537387785372,1.8018274113180015,1.816256475499555,1.8305375826075154,1.8446666555119684,1.8586388123664768,1.8724482948080636,1.8860884016479167,1.8995514290281215,1.9128286179964773,1.9259101104179812,1.9387849140979612,1.9514408779376493,1.9638646778789681,1.976041814320758,1.987956621605072,1.9995922900784047,2.01093090113093,2.021953475506053,2.0326400350549596,2.0429696779859774,2.052920667528548,2.0624705337963802,2.0715961884962577,2.0802740519882335,2.088480192061791,2.096190473651738,2.1033807185793196,2.1100268742693156,2.1161051902646903,2.1215924012381944,2.1264659150869147,2.1307040045925048,2.134286001038663,2.137192488099424,2.1394054942486695,2.1409086818940835,2.1416875314087824,2.1417295182218385,2.141024281135844,2.1395637800659597,2.137342441440876,2.134357289572006,2.1306080623826573,2.126097309993802,2.120830474786272,2.1148159517003857,2.1080651276914115,2.1080651276914115,2.100592399432022,2.0924151685389347,2.083553813798742,2.0740316400753573,2.063874803796272,2.0531122151349273,2.041775417229186,2.0298984429989178,2.0175176503464436,2.004671536739633,1.9914005343861512,1.9777467874064398,1.963753912600169,1.9494667455737678,1.934931074153518,1.9201933611473583,1.9053004586377171,1.8902993160858197,1.8752366846037452,1.8601588198036059,1.8451111856623026,1.8301381618457981,1.815282756918061,1.8005863298175115,1.7860883219180004,1.7718260019033414,1.7578342255745971,1.744145212579641,1.730788341905763,1.717789967810431,1.7051732576842333,1.6929580531457091,1.6811607554621373,1.669794236175623,1.658867773592337,1.6483870155665954,1.6383539687830806,1.628767014512095,1.6196209505865646,1.6109070591277053,1.6026131993310182,1.594723924417463,1.5872206216582547,1.5800816741973986,1.5732826432254388,1.56679646890238,1.560593688288542,1.5546426684203714,1.5489098525647569,1.5433600176008915,1.537956540413729,1.532661671137758,1.5274368110643886,1.5222427930205236,1.5170401620396436,1.5117894541794008,1.5064514713907478,1.500987550412201,1.4953598237478076,1.4895314708879803,1.4895314708879803,1.4834669580469277,1.4771322648179632,1.4704950962867847,1.4635250792914882,1.4561939416749623,1.4484756735387334,1.440346669675654,1.4317858525302534,1.4227747752085773,1.4132977042320323,1.4033416819007485,1.3928965682994854,1.3819550631417954,1.3705127078045833,1.3585678680540039,1.3461216981037158,1.3331780867768317,1.3197435866624208,1.3058273272654903,1.2914409132453715,1.2765983089207287,1.2613157102899273,1.2456114058728005,1.2295056277241108,1.2130203940002646,1.196179344479247,1.1790075704398602,1.1615314403004824,1.143778422400378,1.1257769062787326,1.1075560237688242,1.089145471177824,1.070575333767583,1.051875913689198,1.0330775624551511,1.0142105189582484,0.995304753967309,0.9763898219466097,0.9574947209601652,0.9386477613339449,0.9198764436598825,0.9012073466357277,0.8826660251451343,0.8642769188934702,0.8460632718273325,0.8280470624800705,0.8102489453023309,0.7926882029560597,0.7753827094729964,0.758348904104727,0.7416017756211011,0.7251548567475777,0.709020228369999,0.6932085330775971,0.6777289975619011,0.6625894633407614,0.6477964252330941,0.6333550769712318,0.6192693633041576,0.6055420379163606,0.592174726463804,0.5791679940105,0.5665214161365661,0.5542336529814581,0.5423025254842752,0.5307250930867365,0.5194977321735443,0.5086162145393538,0.4980757851913926,0.4878712388218152,0.4779969943139618,0.46844716668162845,0.45921563588005737,0.4502961119712455,0.4416821961741229,0.43336743738168726,0.42534538378195647,0.41760962927709167,0.4101538544547506,0.4029718619271261,0.3960576059155819,0.3894052160217629,0.3830090151888343,0.37686353191852145,0.37096350687018065,0.36530389402662145,0.35987985666716693,0.3546867584409203,0.34972014988177896,0.34497575075089854,0.34044942863157324,0.33613717423542677,0.3320350739070326,0.3281392798363268,0.32444597850419016,0.32095135789624485,0.31765157402314725,0.3145427172825004,0.3116207791880484,0.30888161997624525,0.30632093757886264,0.30393423842337064,0.30171681049078863,0.2996636990240384,0.29776968523907377,0.2960292683467857,0.29443665114651274,0.29298572940257606,0.29167008516427745,0.29048298413794094,0.2894173771675111,0.28846590582864584,0.28762091209079094,0.28687445195304523,0.28621831291329586,0.28564403508667513,0.2851429357493608,0.2847061370475216,0.28432459657919545,0.2839891405293479,0.2836904990155438,0.28341934328370416,0.28316632438041217,0.2829221129201554,0.2826774395627095,0.2824231358174011,0.2821501747970828,0.28184971155500405,0.2815131226520786,0.28113204461997315,0.28069841100655024,0.2802044877140864,0.2796429063668725,0.27900669547284407,0.27828930917328326,0.2774846534049206,0.2765871093294823,0.27559155391641255,0.27449337759474346,0.27328849891948503,0.27197337622611284,0.2705450162734125,0.2690009798998437,0.26733938474146945,0.2655589050801927,0.2636587689094196,0.26163875232025513,0.25949917132489975,0.2572408712450677,0.25486521380207194,0.2523740620517837,0.24976976331215506,0.2470551302335222,0.24423342016270644,0.24130831295120786,0.23828388735575667,0.23516459617642207,0.23195524027358347,0.2286609416006101,0.22528711538429144,0.2218394415801287,0.21832383572475617,0.21474641930315025,0.21111348974411684,0.20743149015388235,0.20370697889460804,0.1999465991123211,0.19615704831716738,0.19234504811803863,0.18851731421345932,0.1846805267411165,0.1808413010894498,0.17700615927620736,0.17318150200067292,0.1693735814782197,0.1655884751678136,0.161832060504848,0.15810999075312412,0.15442767209066693,0.15079024204423616,0.14720254938668278,0.1436691356095561,0.14019421808045548,0.13678167499040642,0.1334350321909648,0.13015745201370751,0.126951724156246,0.12382025870887406,0.12076508138445945,0.1177878310012764,0.11488975925420658,0.11207173279427067,0.1093342376198918,0.10667738576583598,0.10410092425760531,0.10160424628040052,0.09918640449284596,0.0968461263967452,0.09458183165544018,0.09239165123517844,0.09027344822647661,0.08822484018608971,0.0862432228250884,0.0843257948549497,0.08246958379170224,0.08067147250821824,0.07892822631690072,0.07723652035939796,0.07559296707671197,0.07399414353222544,0.07243661836179446,0.07091697812915414,0.06943185287141755,0.0679779406283709,0.06655203076045513,0.0651510258736602,0.06377196218486694,0.06241202817826185,0.06106858142210553]\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"axis_title_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_title_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_ticks_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis\":{\n",
       "\"blank\":true\n",
       "},\n",
       "\"axis_line_y\":{\n",
       "\"blank\":false\n",
       "}\n",
       "}\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"ALv4Bg\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();    \n",
       "   </script>"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "residualPlot(iris_dat, \"petal_length\", \"petal_width\", size=5, color=\"#feb24c\", alpha=0.3)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "cb693d10",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"jeAV4Z\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"mapping\":{\n",
       "\"x\":\"petal_length\",\n",
       "\"y\":\"residual\"\n",
       "},\n",
       "\"data\":{\n",
       "\"residual\":[-0.016472739982832107,-0.016472739982832107,0.025169173245708054,-0.05811465321137227,-0.016472739982832107,0.05860152033154742,0.08352726001716787,-0.05811465321137227,-0.016472739982832107,-0.15811465321137227,-0.05811465321137227,-0.09975656643991243,-0.11647273998283211,0.008452999702788316,0.06681108647424822,0.14188534678862774,0.22516917324570807,0.08352726001716787,-0.041398479668452615,0.04188534678862771,-0.1413984796684526,0.14188534678862774,0.15009491293132854,0.1586015203315474,-0.22468230612553292,-0.09975656643991243,0.10024343356008758,-0.05811465321137227,-0.016472739982832107,-0.09975656643991243,-0.09975656643991243,0.14188534678862774,-0.15811465321137227,-0.016472739982832107,-0.15811465321137227,0.06681108647424822,0.025169173245708054,-0.15811465321137227,0.025169173245708054,-0.05811465321137227,0.12516917324570803,0.12516917324570803,0.025169173245708054,0.30024343356008754,-0.024682306125532905,0.08352726001716787,-0.09975656643991243,-0.016472739982832107,-0.05811465321137227,-0.016472739982832107,-0.19065587652465754,-0.0073720500675771294,-0.17393970298173778,8.375160751237232E-4,-0.04901396329611707,-0.20737205006757709,0.009344123475342636,-0.00766909132509519,-0.24901396329611702,0.14247942930366375,-0.09095291778217551,0.11755368961804336,-0.2991624839248763,-0.19065587652465754,0.16740516898928437,-0.06573013683903728,-0.0073720500675771294,-0.34080439715341626,-0.0073720500675771294,-0.15752057069633607,0.16770221024680243,8.375160751237232E-4,-0.17393970298173778,-0.3906558765246575,-0.12408822361049676,-0.06573013683903728,-0.2322977897531977,-0.015581616210277982,-0.0073720500675771294,-0.09095291778217551,-0.11587865746779591,-0.17423674423925584,-0.057520570696336204,-0.157223529438818,-0.0073720500675771294,0.09262794993242296,-0.09065587652465745,-0.16573013683903715,-0.040804397153416216,8.375160751237232E-4,-0.26573013683903723,-0.14901396329611716,-0.09916248392487637,-0.00766909132509519,-0.0824463103819566,-0.1824463103819567,-0.0824463103819566,-0.12408822361049676,0.21725664836052538,-0.040804397153416216,0.36799925150432067,0.1427764705611818,0.009641164732860918,-0.16543309558151886,0.15128307796140117,-0.2818522278669202,0.19262794993242283,-0.4569264881812998,-0.24871692203859896,0.3263573382757805,0.2427764705611819,0.05949264410410149,0.17620881764702134,0.28441838378972206,0.6427764705611818,0.4594926441041014,-0.1237911823529787,-0.22349414109546029,-0.20677796755254096,-0.21558161621027794,0.292924991189941,0.3260602970182622,-0.42349414109546046,0.12606029701826227,0.09292499118994124,-0.3320007484956793,0.16770221024680243,0.12606029701826227,0.13456690441848118,-0.4487169220385989,-0.2736426617242196,-0.29856840140984,0.23456690441848127,-0.2572235294388181,-0.565433095581519,0.12635733827578033,0.434566904418481,-0.1237911823529787,0.16770221024680243,0.2178507308755615,0.434566904418481,0.5427764705611817,0.1427764705611818,0.20964116473286065,0.49292499118994115,0.5011345573326416,0.18441838378972197,0.20113455733264174,0.41785073087556124,0.042776470561181945],\n",
       "\"petal_length\":[1.4,1.4,1.3,1.5,1.4,1.7,1.4,1.5,1.4,1.5,1.5,1.6,1.4,1.1,1.2,1.5,1.3,1.4,1.7,1.5,1.7,1.5,1.0,1.7,1.9,1.6,1.6,1.5,1.4,1.6,1.6,1.5,1.5,1.4,1.5,1.2,1.3,1.5,1.3,1.5,1.3,1.3,1.3,1.6,1.9,1.4,1.6,1.4,1.5,1.4,4.7,4.5,4.9,4.0,4.6,4.5,4.7,3.3,4.6,3.9,3.5,4.2,4.0,4.7,3.6,4.4,4.5,4.1,4.5,3.9,4.8,4.0,4.9,4.7,4.3,4.4,4.8,5.0,4.5,3.5,3.8,3.7,3.9,5.1,4.5,4.5,4.7,4.4,4.1,4.0,4.4,4.6,4.0,3.3,4.2,4.2,4.2,4.3,3.0,4.1,6.0,5.1,5.9,5.6,5.8,6.6,4.5,6.3,5.8,6.1,5.1,5.3,5.5,5.0,5.1,5.3,5.5,6.7,6.9,5.0,5.7,4.9,6.7,4.9,5.7,6.0,4.8,4.9,5.6,5.8,6.1,6.4,5.6,5.1,5.6,6.1,5.6,5.5,4.8,5.4,5.6,5.1,5.1,5.9,5.7,5.2,5.0,5.2,5.4,5.1]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"petal_width residual\"\n",
       "}],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"density\",\n",
       "\"orientation\":\"y\",\n",
       "\"margin_side\":\"r\",\n",
       "\"color\":\"black\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"area\",\n",
       "\"fill\":\"black\",\n",
       "\"data\":{\n",
       "\"residual\":[-0.565433095581519,-0.5630686932994393,-0.5607042910173597,-0.5583398887352801,-0.5559754864532004,-0.5536110841711207,-0.5512466818890411,-0.5488822796069615,-0.5465178773248818,-0.5441534750428022,-0.5417890727607225,-0.5394246704786428,-0.5370602681965632,-0.5346958659144836,-0.5323314636324039,-0.5299670613503242,-0.5276026590682446,-0.525238256786165,-0.5228738545040853,-0.5205094522220056,-0.518145049939926,-0.5157806476578464,-0.5134162453757667,-0.511051843093687,-0.5086874408116074,-0.5063230385295278,-0.5039586362474481,-0.5015942339653685,-0.4992298316832888,-0.49686542940120915,-0.4945010271191295,-0.4921366248370499,-0.4897722225549702,-0.48740782027289054,-0.4850434179908109,-0.4826790157087313,-0.4803146134266516,-0.477950211144572,-0.47558580886249235,-0.4732214065804127,-0.470857004298333,-0.46849260201625337,-0.46612819973417374,-0.46376379745209406,-0.46139939517001444,-0.45903499288793476,-0.45667059060585513,-0.45430618832377545,-0.4519417860416958,-0.4495773837596162,-0.4472129814775365,-0.4448485791954569,-0.4424841769133772,-0.4401197746312976,-0.4377553723492179,-0.4353909700671383,-0.43302656778505866,-0.430662165502979,-0.4282977632208993,-0.42593336093881967,-0.42356895865674005,-0.42120455637466037,-0.41884015409258074,-0.4164757518105011,-0.41411134952842144,-0.41174694724634175,-0.40938254496426213,-0.4070181426821825,-0.4046537404001028,-0.4022893381180232,-0.3999249358359436,-0.3975605335538639,-0.3951961312717842,-0.3928317289897046,-0.39046732670762496,-0.3881029244255453,-0.38573852214346566,-0.38337411986138603,-0.38100971757930635,-0.37864531529722667,-0.37628091301514704,-0.3739165107330674,-0.37155210845098774,-0.36918770616890806,-0.36682330388682843,-0.3644589016047488,-0.3620944993226691,-0.3597300970405895,-0.3573656947585099,-0.3550012924764302,-0.3526368901943505,-0.3502724879122709,-0.34790808563019127,-0.3455436833481116,-0.34317928106603196,-0.34081487878395234,-0.33845047650187265,-0.336086074219793,-0.33372167193771335,-0.3313572696556337,-0.32899286737355404,-0.3266284650914744,-0.3242640628093948,-0.3218996605273151,-0.31953525824523543,-0.3171708559631558,-0.3148064536810762,-0.3124420513989965,-0.3100776491169169,-0.3077132468348372,-0.30534884455275757,-0.3029844422706779,-0.30062003998859826,-0.29825563770651864,-0.29589123542443896,-0.29352683314235933,-0.29116243086027965,-0.28879802857820003,-0.28643362629612035,-0.2840692240140407,-0.2817048217319611,-0.2793404194498814,-0.2769760171678018,-0.2746116148857221,-0.2722472126036425,-0.2698828103215628,-0.2675184080394832,-0.2651540057574035,-0.2627896034753239,-0.26042520119324425,-0.25806079891116457,-0.25569639662908494,-0.25333199434700526,-0.25096759206492564,-0.24860318978284596,-0.24623878750076633,-0.24387438521868665,-0.24150998293660703,-0.2391455806545274,-0.23678117837244772,-0.2344167760903681,-0.23205237380828841,-0.2296879715262088,-0.2273235692441291,-0.22495916696204948,-0.22259476467996986,-0.22023036239789018,-0.21786596011581055,-0.21550155783373087,-0.21313715555165125,-0.21077275326957157,-0.20840835098749194,-0.20604394870541232,-0.20367954642333264,-0.201315144141253,-0.19895074185917333,-0.1965863395770937,-0.19422193729501402,-0.1918575350129344,-0.18949313273085472,-0.1871287304487751,-0.18476432816669547,-0.1823999258846158,-0.18003552360253616,-0.17767112132045648,-0.17530671903837686,-0.17294231675629718,-0.17057791447421755,-0.16821351219213787,-0.16584910991005825,-0.16348470762797862,-0.16112030534589894,-0.15875590306381931,-0.15639150078173963,-0.15402709849966,-0.15166269621758033,-0.1492982939355007,-0.14693389165342108,-0.1445694893713414,-0.14220508708926177,-0.1398406848071821,-0.1398406848071821,-0.13747628252510247,-0.13511188024302279,-0.13274747796094316,-0.13038307567886354,-0.12801867339678386,-0.12565427111470423,-0.12328986883262455,-0.12092546655054492,-0.11856106426846524,-0.11619666198638562,-0.11383225970430594,-0.11146785742222631,-0.10910345514014669,-0.10673905285806701,-0.10437465057598738,-0.1020102482939077,-0.09964584601182808,-0.0972814437297484,-0.09491704144766877,-0.09255263916558909,-0.09018823688350946,-0.08782383460142984,-0.08545943231935016,-0.08309503003727053,-0.08073062775519085,-0.07836622547311123,-0.07600182319103155,-0.07363742090895192,-0.0712730186268723,-0.06890861634479262,-0.06654421406271299,-0.06417981178063337,-0.061815409498553686,-0.059451007216474006,-0.057086604934394325,-0.054722202652314755,-0.052357800370235075,-0.049993398088155394,-0.047628995806075825,-0.045264593523996144,-0.04290019124191646,-0.04053578895983678,-0.03817138667775721,-0.03580698439567753,-0.03344258211359785,-0.031078179831518282,-0.0287137775494386,-0.02634937526735892,-0.02398497298527924,-0.02162057070319967,-0.01925616842111999,-0.01689176613904031,-0.01689176613904031,-0.01452736385696074,-0.01216296157488106,-0.009798559292801379,-0.007434157010721698,-0.0050697547286421285,-0.002705352446562448,-3.4095016448276727E-4,0.0020234521175968023,0.004387854399676483,0.0067522566817561636,0.009116658963835844,0.011481061245915414,0.013845463527995094,0.016209865810074775,0.018574268092154456,0.020938670374234025,0.023303072656313706,0.025667474938393386,0.028031877220472956,0.030396279502552637,0.03276068178463232,0.035125084066712,0.03748948634879157,0.03985388863087125,0.04221829091295093,0.0445826931950305,0.04694709547711018,0.04931149775918986,0.05167590004126954,0.05404030232334911,0.05640470460542879,0.05876910688750847,0.06113350916958804,0.06349791145166772,0.0658623137337474,0.06822671601582708,0.07059111829790665,0.07295552057998633,0.07531992286206601,0.0776843251441457,0.08004872742622526,0.08241312970830494,0.08477753199038462,0.0871419342724642,0.08950633655454387,0.09187073883662356,0.09423514111870324,0.0965995434007828,0.09896394568286249,0.10132834796494217,0.10369275024702174,0.10605715252910142,0.1084215548111811,0.11078595709326078,0.11315035937534035,0.11551476165742003,0.11787916393949971,0.12024356622157928,0.12260796850365896,0.12497237078573864,0.12497237078573864,0.12733677306781832,0.1297011753498979,0.13206557763197757,0.13442997991405725,0.13679438219613682,0.1391587844782165,0.14152318676029618,0.14388758904237586,0.14625199132445543,0.1486163936065351,0.1509807958886148,0.15334519817069436,0.15570960045277404,0.15807400273485372,0.1604384050169334,0.16280280729901297,0.16516720958109266,0.16753161186317234,0.16989601414525202,0.1722604164273316,0.17462481870941127,0.17698922099149095,0.17935362327357052,0.1817180255556502,0.18408242783772988,0.18644683011980956,0.18881123240188913,0.1911756346839688,0.1935400369660485,0.19590443924812806,0.19826884153020774,0.20063324381228742,0.2029976460943671,0.20536204837644667,0.20772645065852635,0.21009085294060603,0.2124552552226856,0.21481965750476528,0.21718405978684496,0.21954846206892464,0.2219128643510042,0.2242772666330839,0.22664166891516357,0.22900607119724325,0.23137047347932282,0.2337348757614025,0.23609927804348219,0.23846368032556176,0.24082808260764144,0.24319248488972112,0.2455568871718008,0.24792128945388037,0.25028569173596005,0.25265009401803973,0.2550144963001193,0.257378898582199,0.25974330086427866,0.26210770314635834,0.2644721054284379,0.2668365077105176,0.26920090999259727,0.27156531227467684,0.2739297145567565,0.2762941168388362,0.2786585191209159,0.28102292140299545,0.28338732368507513,0.2857517259671548,0.2881161282492344,0.29048053053131406,0.29284493281339374,0.2952093350954734,0.297573737377553,0.2999381396596327,0.30230254194171235,0.3046669442237919,0.3070313465058716,0.3093957487879513,0.31176015107003097,0.31412455335211054,0.3164889556341902,0.3188533579162699,0.3212177601983496,0.32358216248042915,0.32594656476250883,0.3283109670445885,0.3306753693266681,0.33303977160874776,0.33540417389082744,0.3377685761729071,0.3401329784549867,0.34249738073706637,0.34486178301914605,0.3472261853012256,0.3495905875833053,0.351954989865385,0.35431939214746466,0.35668379442954423,0.3590481967116239,0.3614125989937036,0.36377700127578316,0.36614140355786284,0.3685058058399425,0.3708702081220222,0.3732346104041018,0.37559901268618145,0.37796341496826114,0.3803278172503408,0.3826922195324204,0.38505662181450007,0.38742102409657975,0.3897854263786593,0.392149828660739,0.3945142309428187,0.39687863322489836,0.39924303550697793,0.4016074377890576,0.4039718400711373,0.40633624235321686,0.40870064463529654,0.4110650469173762,0.4134294491994559,0.41579385148153547,0.41815825376361515,0.42052265604569483,0.4228870583277744,0.4252514606098541,0.42761586289193376,0.42998026517401344,0.432344667456093,0.4347090697381728,0.43707347202025226,0.43943787430233194,0.4418022765844116,0.4441666788664913,0.446531081148571,0.44889548343065067,0.45125988571273035,0.4536242879948098,0.4559886902768895,0.45835309255896917,0.46071749484104885,0.4630818971231285,0.4654462994052082,0.4678107016872879,0.47017510396936735,0.47253950625144703,0.4749039085335267,0.4772683108156064,0.47963271309768607,0.48199711537976575,0.48436151766184543,0.4867259199439249,0.48909032222600457,0.49145472450808425,0.49381912679016393,0.4961835290722436,0.4985479313543233,0.500912333636403,0.5032767359184824,0.5056411382005621,0.5080055404826418,0.5103699427647215,0.5127343450468012,0.5150987473288808,0.5174631496109605,0.51982755189304,0.5221919541751197,0.5245563564571993,0.526920758739279,0.5292851610213587,0.5316495633034384,0.5340139655855181,0.5363783678675975,0.5387427701496772,0.5411071724317569,0.5434715747138366,0.5458359769959162,0.5482003792779959,0.5505647815600756,0.5529291838421551,0.5552935861242347,0.5576579884063144,0.5600223906883941,0.5623867929704738,0.5647511952525535,0.5671155975346331,0.5694799998167126,0.5718444020987923,0.574208804380872,0.5765732066629516,0.5789376089450313,0.581302011227111,0.5836664135091907,0.5860308157912704,0.5883952180733498,0.5907596203554295,0.5931240226375092,0.5954884249195889,0.5978528272016685,0.6002172294837482,0.6025816317658279,0.6049460340479074,0.607310436329987,0.6096748386120667,0.6120392408941464,0.6144036431762261,0.6167680454583058,0.6191324477403854,0.6214968500224649,0.6238612523045446,0.6262256545866243,0.628590056868704,0.6309544591507836,0.6333188614328633,0.635683263714943,0.6380476659970225,0.6404120682791021,0.6427764705611818],\n",
       "\"petal_length\":[0.06369062959121824,0.06523785862023584,0.06681002156591372,0.06840931378349398,0.07003799080353539,0.07169834521838545,0.07339268225265115,0.07512329426489503,0.07689243445008612,0.07870229003191406,0.08055495525056434,0.08245240446465323,0.08439646569544128,0.0863887949469646,0.0884308516371584,0.09052387547226841,0.09266886508978599,0.09486655878378344,0.09711741761092252,0.09942161115566166,0.10177900620947385,0.10418915859142472,0.10665130830653835,0.10916437820433744,0.11172697626315414,0.11433740158671957,0.11699365415859667,0.1196934483577416,0.12243423019538573,0.12521319819003154,0.12802732775426356,0.13087339892478594,0.13374802722618184,0.1366476974198945,0.13956879985332704,0.1425076690902821,0.14546062447360497,0.14842401224430682,0.1513942488189554,0.15436786480903578,0.157341549352557,0.16031219431958926,0.16327693794978146,0.16623320748128342,0.16917876033688212,0.17211172344446282,0.1750306302850096,0.17793445528204158,0.18082264517140273,0.18369514701936318,0.18655243258969664,0.18939551879634708,0.19222598401709085,0.19504598008470897,0.19785823981516135,0.20066607997655622,0.20347339964783906,0.20628467396151226,0.2091049432698832,0.2119397978187696,0.21479535805575678,0.21767825074162137,0.22059558107283977,0.22355490105991319,0.226564174440096,0.2296317384337425,0.2327662626805964,0.2359767057156819,0.23927226936387977,0.2426623514475818,0.2461564972130146,0.24976434988777205,0.25349560078490396,0.25735993936754703,0.2613670036827181,0.26552633156359057,0.26984731298661546,0.27433914395328596,0.27901078224659676,0.28387090538942,0.288927871106494,0.29418968056374495,0.29966394462858403,0.3053578533629554,0.31127814892756417,0.3174311020412709,0.3238224921043753,0.3304575910588306,0.33734115102255724,0.34447739569939856,0.3518700155311094,0.3595221665233869,0.36743647264471185,0.37561503166484156,0.38405942426951595,0.3927707262595069,0.40174952361584204,0.41099593018899055,0.420509607748353,0.4302897881095469,0.4403352970410672,0.45064457963896803,0.4612157268483587,0.4720465028039735,0.483134372658781,0.4944765305697223,0.5060699275131767,0.5179112986096888,0.5299971896478546,0.542323982510918,0.5548879192266025,0.5676851243808517,0.5807116256592298,0.5939633723057764,0.6074362513176595,0.6211261012249479,0.6350287233379004,0.6491398903789621,0.663455352452927,0.6779708403459577,0.6926820661820938,0.7075847215038854,0.7226744728816568,0.737946955192887,0.7533977627490378,0.7690224384812545,0.7848164614282007,0.8007752327985311,0.8168940609064549,0.8331681453013831,0.8495925604309689,0.8661622391910043,0.8828719567249766,0.8997163148404413,0.9166897274086947,0.9337864071080116,0.9510003538593343,0.9683253452863376,0.985754929509604,1.0032824205572755,1.0209008966422328,1.03860320151892,1.056381949091778,1.0742295314023351,1.0921381300738071,1.110099731241288,1.1281061439427331,1.1461490218918557,1.1642198884993047,1.1823101649539165,1.200411201122247,1.2185143089725683,1.2366107981801668,1.254692013524358,1.2727493736454065,1.2907744106916865,1.3087588103549093,1.3266944517644024,1.3445734466908776,1.362388177496274,1.3801313332593141,1.3977959435067897,1.4153754089882329,1.4328635289468503,1.4502545243621434,1.46754305666932,1.4847242414977098,1.501793657013721,1.518747346504126,1.5355818148910716,1.5522940189316388,1.568881350920591,1.5853416157851912,1.6016730015343517,1.617874043100668,1.6339435796919144,1.6498807058478402,1.6656847164776338,1.6813550462324232,1.6968912036450021,1.7122927005444437,1.7122927005444437,1.7275589773261788,1.7426893247269488,1.7576828028187486,1.7725381579953656,1.7872537387785372,1.8018274113180015,1.816256475499555,1.8305375826075154,1.8446666555119684,1.8586388123664768,1.8724482948080636,1.8860884016479167,1.8995514290281215,1.9128286179964773,1.9259101104179812,1.9387849140979612,1.9514408779376493,1.9638646778789681,1.976041814320758,1.987956621605072,1.9995922900784047,2.01093090113093,2.021953475506053,2.0326400350549596,2.0429696779859774,2.052920667528548,2.0624705337963802,2.0715961884962577,2.0802740519882335,2.088480192061791,2.096190473651738,2.1033807185793196,2.1100268742693156,2.1161051902646903,2.1215924012381944,2.1264659150869147,2.1307040045925048,2.134286001038663,2.137192488099424,2.1394054942486695,2.1409086818940835,2.1416875314087824,2.1417295182218385,2.141024281135844,2.1395637800659597,2.137342441440876,2.134357289572006,2.1306080623826573,2.126097309993802,2.120830474786272,2.1148159517003857,2.1080651276914115,2.1080651276914115,2.100592399432022,2.0924151685389347,2.083553813798742,2.0740316400753573,2.063874803796272,2.0531122151349273,2.041775417229186,2.0298984429989178,2.0175176503464436,2.004671536739633,1.9914005343861512,1.9777467874064398,1.963753912600169,1.9494667455737678,1.934931074153518,1.9201933611473583,1.9053004586377171,1.8902993160858197,1.8752366846037452,1.8601588198036059,1.8451111856623026,1.8301381618457981,1.815282756918061,1.8005863298175115,1.7860883219180004,1.7718260019033414,1.7578342255745971,1.744145212579641,1.730788341905763,1.717789967810431,1.7051732576842333,1.6929580531457091,1.6811607554621373,1.669794236175623,1.658867773592337,1.6483870155665954,1.6383539687830806,1.628767014512095,1.6196209505865646,1.6109070591277053,1.6026131993310182,1.594723924417463,1.5872206216582547,1.5800816741973986,1.5732826432254388,1.56679646890238,1.560593688288542,1.5546426684203714,1.5489098525647569,1.5433600176008915,1.537956540413729,1.532661671137758,1.5274368110643886,1.5222427930205236,1.5170401620396436,1.5117894541794008,1.5064514713907478,1.500987550412201,1.4953598237478076,1.4895314708879803,1.4895314708879803,1.4834669580469277,1.4771322648179632,1.4704950962867847,1.4635250792914882,1.4561939416749623,1.4484756735387334,1.440346669675654,1.4317858525302534,1.4227747752085773,1.4132977042320323,1.4033416819007485,1.3928965682994854,1.3819550631417954,1.3705127078045833,1.3585678680540039,1.3461216981037158,1.3331780867768317,1.3197435866624208,1.3058273272654903,1.2914409132453715,1.2765983089207287,1.2613157102899273,1.2456114058728005,1.2295056277241108,1.2130203940002646,1.196179344479247,1.1790075704398602,1.1615314403004824,1.143778422400378,1.1257769062787326,1.1075560237688242,1.089145471177824,1.070575333767583,1.051875913689198,1.0330775624551511,1.0142105189582484,0.995304753967309,0.9763898219466097,0.9574947209601652,0.9386477613339449,0.9198764436598825,0.9012073466357277,0.8826660251451343,0.8642769188934702,0.8460632718273325,0.8280470624800705,0.8102489453023309,0.7926882029560597,0.7753827094729964,0.758348904104727,0.7416017756211011,0.7251548567475777,0.709020228369999,0.6932085330775971,0.6777289975619011,0.6625894633407614,0.6477964252330941,0.6333550769712318,0.6192693633041576,0.6055420379163606,0.592174726463804,0.5791679940105,0.5665214161365661,0.5542336529814581,0.5423025254842752,0.5307250930867365,0.5194977321735443,0.5086162145393538,0.4980757851913926,0.4878712388218152,0.4779969943139618,0.46844716668162845,0.45921563588005737,0.4502961119712455,0.4416821961741229,0.43336743738168726,0.42534538378195647,0.41760962927709167,0.4101538544547506,0.4029718619271261,0.3960576059155819,0.3894052160217629,0.3830090151888343,0.37686353191852145,0.37096350687018065,0.36530389402662145,0.35987985666716693,0.3546867584409203,0.34972014988177896,0.34497575075089854,0.34044942863157324,0.33613717423542677,0.3320350739070326,0.3281392798363268,0.32444597850419016,0.32095135789624485,0.31765157402314725,0.3145427172825004,0.3116207791880484,0.30888161997624525,0.30632093757886264,0.30393423842337064,0.30171681049078863,0.2996636990240384,0.29776968523907377,0.2960292683467857,0.29443665114651274,0.29298572940257606,0.29167008516427745,0.29048298413794094,0.2894173771675111,0.28846590582864584,0.28762091209079094,0.28687445195304523,0.28621831291329586,0.28564403508667513,0.2851429357493608,0.2847061370475216,0.28432459657919545,0.2839891405293479,0.2836904990155438,0.28341934328370416,0.28316632438041217,0.2829221129201554,0.2826774395627095,0.2824231358174011,0.2821501747970828,0.28184971155500405,0.2815131226520786,0.28113204461997315,0.28069841100655024,0.2802044877140864,0.2796429063668725,0.27900669547284407,0.27828930917328326,0.2774846534049206,0.2765871093294823,0.27559155391641255,0.27449337759474346,0.27328849891948503,0.27197337622611284,0.2705450162734125,0.2690009798998437,0.26733938474146945,0.2655589050801927,0.2636587689094196,0.26163875232025513,0.25949917132489975,0.2572408712450677,0.25486521380207194,0.2523740620517837,0.24976976331215506,0.2470551302335222,0.24423342016270644,0.24130831295120786,0.23828388735575667,0.23516459617642207,0.23195524027358347,0.2286609416006101,0.22528711538429144,0.2218394415801287,0.21832383572475617,0.21474641930315025,0.21111348974411684,0.20743149015388235,0.20370697889460804,0.1999465991123211,0.19615704831716738,0.19234504811803863,0.18851731421345932,0.1846805267411165,0.1808413010894498,0.17700615927620736,0.17318150200067292,0.1693735814782197,0.1655884751678136,0.161832060504848,0.15810999075312412,0.15442767209066693,0.15079024204423616,0.14720254938668278,0.1436691356095561,0.14019421808045548,0.13678167499040642,0.1334350321909648,0.13015745201370751,0.126951724156246,0.12382025870887406,0.12076508138445945,0.1177878310012764,0.11488975925420658,0.11207173279427067,0.1093342376198918,0.10667738576583598,0.10410092425760531,0.10160424628040052,0.09918640449284596,0.0968461263967452,0.09458183165544018,0.09239165123517844,0.09027344822647661,0.08822484018608971,0.0862432228250884,0.0843257948549497,0.08246958379170224,0.08067147250821824,0.07892822631690072,0.07723652035939796,0.07559296707671197,0.07399414353222544,0.07243661836179446,0.07091697812915414,0.06943185287141755,0.0679779406283709,0.06655203076045513,0.0651510258736602,0.06377196218486694,0.06241202817826185,0.06106858142210553],\n",
       "\"..quantile..\":[0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"yintercept\":0.0,\n",
       "\"color\":\"black\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"hline\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"color\":\"black\",\n",
       "\"shape\":21.0,\n",
       "\"size\":5.0,\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"point\",\n",
       "\"fill\":\"#feb24c\",\n",
       "\"data\":{\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"axis_title_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_title_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_ticks_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis\":{\n",
       "\"blank\":true\n",
       "},\n",
       "\"axis_line_y\":{\n",
       "\"blank\":false\n",
       "}\n",
       "}\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"jeAV4Z\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();    \n",
       "   </script>"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "residualPlot(iris_dat, \"petal_length\", \"petal_width\", geom=\"none\", color=\"black\", hline=false) + \n",
    "    geomHLine(yintercept=0, color=\"black\") +\n",
    "    geomPoint(size=5, shape=21, color=\"black\", fill=\"#feb24c\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "721b1b7f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"Hjv2m8\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"mapping\":{\n",
       "\"x\":\"petal_length\",\n",
       "\"y\":\"residual\"\n",
       "},\n",
       "\"data\":{\n",
       "\"residual\":[-0.016472739982832107,-0.016472739982832107,0.025169173245708054,-0.05811465321137227,-0.016472739982832107,0.05860152033154742,0.08352726001716787,-0.05811465321137227,-0.016472739982832107,-0.15811465321137227,-0.05811465321137227,-0.09975656643991243,-0.11647273998283211,0.008452999702788316,0.06681108647424822,0.14188534678862774,0.22516917324570807,0.08352726001716787,-0.041398479668452615,0.04188534678862771,-0.1413984796684526,0.14188534678862774,0.15009491293132854,0.1586015203315474,-0.22468230612553292,-0.09975656643991243,0.10024343356008758,-0.05811465321137227,-0.016472739982832107,-0.09975656643991243,-0.09975656643991243,0.14188534678862774,-0.15811465321137227,-0.016472739982832107,-0.15811465321137227,0.06681108647424822,0.025169173245708054,-0.15811465321137227,0.025169173245708054,-0.05811465321137227,0.12516917324570803,0.12516917324570803,0.025169173245708054,0.30024343356008754,-0.024682306125532905,0.08352726001716787,-0.09975656643991243,-0.016472739982832107,-0.05811465321137227,-0.016472739982832107,-0.19065587652465754,-0.0073720500675771294,-0.17393970298173778,8.375160751237232E-4,-0.04901396329611707,-0.20737205006757709,0.009344123475342636,-0.00766909132509519,-0.24901396329611702,0.14247942930366375,-0.09095291778217551,0.11755368961804336,-0.2991624839248763,-0.19065587652465754,0.16740516898928437,-0.06573013683903728,-0.0073720500675771294,-0.34080439715341626,-0.0073720500675771294,-0.15752057069633607,0.16770221024680243,8.375160751237232E-4,-0.17393970298173778,-0.3906558765246575,-0.12408822361049676,-0.06573013683903728,-0.2322977897531977,-0.015581616210277982,-0.0073720500675771294,-0.09095291778217551,-0.11587865746779591,-0.17423674423925584,-0.057520570696336204,-0.157223529438818,-0.0073720500675771294,0.09262794993242296,-0.09065587652465745,-0.16573013683903715,-0.040804397153416216,8.375160751237232E-4,-0.26573013683903723,-0.14901396329611716,-0.09916248392487637,-0.00766909132509519,-0.0824463103819566,-0.1824463103819567,-0.0824463103819566,-0.12408822361049676,0.21725664836052538,-0.040804397153416216,0.36799925150432067,0.1427764705611818,0.009641164732860918,-0.16543309558151886,0.15128307796140117,-0.2818522278669202,0.19262794993242283,-0.4569264881812998,-0.24871692203859896,0.3263573382757805,0.2427764705611819,0.05949264410410149,0.17620881764702134,0.28441838378972206,0.6427764705611818,0.4594926441041014,-0.1237911823529787,-0.22349414109546029,-0.20677796755254096,-0.21558161621027794,0.292924991189941,0.3260602970182622,-0.42349414109546046,0.12606029701826227,0.09292499118994124,-0.3320007484956793,0.16770221024680243,0.12606029701826227,0.13456690441848118,-0.4487169220385989,-0.2736426617242196,-0.29856840140984,0.23456690441848127,-0.2572235294388181,-0.565433095581519,0.12635733827578033,0.434566904418481,-0.1237911823529787,0.16770221024680243,0.2178507308755615,0.434566904418481,0.5427764705611817,0.1427764705611818,0.20964116473286065,0.49292499118994115,0.5011345573326416,0.18441838378972197,0.20113455733264174,0.41785073087556124,0.042776470561181945],\n",
       "\"petal_length\":[1.4,1.4,1.3,1.5,1.4,1.7,1.4,1.5,1.4,1.5,1.5,1.6,1.4,1.1,1.2,1.5,1.3,1.4,1.7,1.5,1.7,1.5,1.0,1.7,1.9,1.6,1.6,1.5,1.4,1.6,1.6,1.5,1.5,1.4,1.5,1.2,1.3,1.5,1.3,1.5,1.3,1.3,1.3,1.6,1.9,1.4,1.6,1.4,1.5,1.4,4.7,4.5,4.9,4.0,4.6,4.5,4.7,3.3,4.6,3.9,3.5,4.2,4.0,4.7,3.6,4.4,4.5,4.1,4.5,3.9,4.8,4.0,4.9,4.7,4.3,4.4,4.8,5.0,4.5,3.5,3.8,3.7,3.9,5.1,4.5,4.5,4.7,4.4,4.1,4.0,4.4,4.6,4.0,3.3,4.2,4.2,4.2,4.3,3.0,4.1,6.0,5.1,5.9,5.6,5.8,6.6,4.5,6.3,5.8,6.1,5.1,5.3,5.5,5.0,5.1,5.3,5.5,6.7,6.9,5.0,5.7,4.9,6.7,4.9,5.7,6.0,4.8,4.9,5.6,5.8,6.1,6.4,5.6,5.1,5.6,6.1,5.6,5.5,4.8,5.4,5.6,5.1,5.1,5.9,5.7,5.2,5.0,5.2,5.4,5.1]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"petal_width residual\"\n",
       "}],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"point\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"smooth\",\n",
       "\"se\":true,\n",
       "\"method\":\"loess\",\n",
       "\"seed\":42.0,\n",
       "\"level\":0.99,\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"smooth\",\n",
       "\"data\":{\n",
       "\"..ymax..\":[0.19217558690775152,0.18621360778465557,0.18036202272568688,0.17463935787852228,0.1690253375271078,0.1635157918313504,0.15809749935530307,0.1527584926805289,0.14748218914047176,0.14225195609369448,0.13709856193322753,0.13197581364374314,0.126771418310946,0.1213938961210288,0.11585506139111057,0.11019689327192658,0.10446151875826384,0.09869121894067052,0.09292843877029588,0.08721579675846844,0.08159609438237904,0.07611232490443064,0.07080768123865469,0.06572556241332486,0.0609095780857928,0.05640355046631659,0.05225151290688292,0.04849747770472717,0.04514805955121428,0.0421308063894581,0.03936338073394652,0.03676358013938185,0.03425180380365925,0.03175405154519367,0.029181015529302114,0.026117934737710263,0.02253012111017786,0.019661956824116637,0.017249149527796742,0.018361001941903127,0.020556973657895765,0.005528411967250263,-0.002137562379701294,0.004061564303213652,0.005659543324840213,0.013967633893881636,0.02302722082832804,0.031570231482235915,0.047889883976860656,0.06547450341081436,0.08220719926212135,0.09862974823389548,0.11430606968976026,0.12813913462870122,0.14143148079280746,0.1505318359572607,0.1511928153476188,0.15637490242435215,0.1640532430815752,0.1679862970790258,0.1686195012070794,0.16707874640269677,0.15423828631643305,0.13240387810347112,0.11666227346040285,0.09597266594565393,0.07277719940033797,0.05283679410241828,0.033132671493215374,0.013454517326541598,-0.006143862667846223,-0.025892737424170545,-0.04597046823310516,-0.06635849854614342,-0.08701684307423128,-0.10791952825274408,-0.12903204566272541,-0.15028828869662114,-0.17162772714747734,-0.19299814877668203],\n",
       "\"..ymin..\":[-0.11003744633856685,-0.11056461943855532,-0.11101107664984597,-0.11135997450146304,-0.11163339011205076,-0.11183742292091348,-0.11198736239174514,-0.11209739343790118,-0.11218647757612764,-0.11227380042873444,-0.11233133440719523,-0.11240821578456092,-0.11261989875584985,-0.11306125893101329,-0.11372412967402015,-0.11457044956484633,-0.11556229822032577,-0.11666190935305369,-0.11783168053622631,-0.11903418290321913,-0.12023217055326986,-0.12138858937082862,-0.1224665848919737,-0.1234295087670258,-0.1242409232753835,-0.12486460324935192,-0.12526453466296467,-0.12540513565773614,-0.12528861173730063,-0.12499659142928685,-0.12462089741356877,-0.12425346260330158,-0.12398378266088261,-0.12389581768088928,-0.12408878238456225,-0.12498715555099499,-0.12663500170980174,-0.1277968089946107,-0.12874506119237475,-0.12641779383624344,-0.12326186393397034,-0.1375910646308764,-0.14482210713949212,-0.13845489874943384,-0.13695663165158173,-0.12901548638580396,-0.12058802975831939,-0.11293885443749749,-0.09776992455586099,-0.08158688488115788,-0.06649953302352936,-0.05195810228509897,-0.03838995978359156,-0.02688287124808808,-0.016124653303395603,-0.009756705968726742,-0.0120164556829149,-0.009933497315463294,-0.0055229041026887,-0.005016661739142711,-0.00796007298530435,-0.013218331999109434,-0.029908652660655108,-0.055717152047803205,-0.07554937299179,-0.10043884154484359,-0.1279365562659282,-0.15227515423011137,-0.1764673742606343,-0.20071787867118338,-0.22496758037444592,-0.2494418189490335,-0.2743143590347267,-0.29956236060330743,-0.3251418486626229,-0.3510231347473972,-0.37716825199119275,-0.4035078742100665,-0.429978473769699,-0.45652504734504157],\n",
       "\"residual\":[0.04106907028459234,0.03782449417305013,0.03467547303792046,0.03163969168852961,0.02869597370752853,0.025839184455218468,0.023055068481778962,0.02033054962131386,0.017647855782172057,0.014989077832480014,0.012383613763016145,0.009783798929591102,0.007075759777548068,0.004166318595007752,0.0010654658585452087,-0.0021867781464598654,-0.005550389731030968,-0.008985345206191587,-0.012451620882965208,-0.01590919307237534,-0.019318038085445414,-0.022638132233198993,-0.025829451826659508,-0.02885197317685046,-0.03166567259479535,-0.03423052639151766,-0.036506510878040875,-0.03845382897650449,-0.04007027609304318,-0.041432892519914374,-0.042628758339811126,-0.04374494123195987,-0.04486598942861168,-0.046070883067847804,-0.047453883427630066,-0.04943461040664236,-0.05205244029981194,-0.05406742608524704,-0.055747955832289,-0.054028395947170155,-0.05135244513803729,-0.06603132633181306,-0.0734798347595967,-0.0671966672231101,-0.06564854416337076,-0.057523926245961164,-0.04878040446499567,-0.04068431147763079,-0.024940020289500164,-0.008056190735171756,0.007853833119295994,0.023335822974398256,0.037958054953084346,0.05062813169030657,0.06265341374470593,0.07038756499426697,0.06958817983235195,0.07322070255444442,0.07926516948944326,0.08148481766994153,0.08032971411088752,0.07693020720179367,0.06216481682788898,0.038343363027833956,0.020556450234306422,-0.002233087799594833,-0.02757967843279511,-0.04971918006384655,-0.07166735138370947,-0.09363168067232089,-0.11555572152114607,-0.13766727818660202,-0.1601424136339159,-0.18296042957472541,-0.2060793458684271,-0.22947133150007065,-0.2531001488269591,-0.2768980814533438,-0.30080310045858816,-0.3247615980608618],\n",
       "\"petal_length\":[1.0,1.0746835443037974,1.1493670886075948,1.2240506329113925,1.29873417721519,1.3734177215189873,1.448101265822785,1.5227848101265824,1.5974683544303798,1.6721518987341772,1.7468354430379747,1.8215189873417723,1.8962025316455697,1.9708860759493672,2.045569620253165,2.1202531645569622,2.1949367088607596,2.269620253164557,2.3443037974683545,2.4189873417721524,2.4936708860759493,2.568354430379747,2.6430379746835446,2.717721518987342,2.7924050632911395,2.867088607594937,2.9417721518987343,3.0164556962025317,3.0911392405063296,3.165822784810127,3.2405063291139244,3.315189873417722,3.3898734177215193,3.4645569620253167,3.539240506329114,3.6139240506329116,3.688607594936709,3.763291139240507,3.8379746835443043,3.9126582278481017,3.987341772151899,4.0620253164556965,4.136708860759494,4.211392405063291,4.286075949367089,4.360759493670887,4.435443037974684,4.510126582278481,4.584810126582279,4.659493670886077,4.734177215189874,4.808860759493671,4.883544303797469,4.9582278481012665,5.0329113924050635,5.107594936708861,5.182278481012659,5.256962025316456,5.331645569620254,5.406329113924051,5.481012658227849,5.555696202531646,5.630379746835444,5.705063291139241,5.779746835443039,5.854430379746836,5.929113924050633,6.003797468354431,6.078481012658228,6.153164556962026,6.227848101265823,6.302531645569621,6.377215189873418,6.451898734177216,6.526582278481014,6.601265822784811,6.6759493670886085,6.7506329113924055,6.825316455696203,6.9]\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"axis_title_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_title_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_ticks_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis\":{\n",
       "\"blank\":true\n",
       "},\n",
       "\"axis_line_y\":{\n",
       "\"blank\":false\n",
       "}\n",
       "}\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"Hjv2m8\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();    \n",
       "   </script>"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "residualPlot(iris_dat, \"petal_length\", \"petal_width\", hline=false, marginal=\"none\") + \n",
    "    geomSmooth(method=\"loess\", se=true, level=.99, seed=42)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6e8cccdb",
   "metadata": {},
   "source": [
    "## Marginal layers customization"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "45031160",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"BqLb3R\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"mapping\":{\n",
       "\"x\":\"petal_length\",\n",
       "\"y\":\"residual\"\n",
       "},\n",
       "\"data\":{\n",
       "\"residual\":[-0.016472739982832107,-0.016472739982832107,0.025169173245708054,-0.05811465321137227,-0.016472739982832107,0.05860152033154742,0.08352726001716787,-0.05811465321137227,-0.016472739982832107,-0.15811465321137227,-0.05811465321137227,-0.09975656643991243,-0.11647273998283211,0.008452999702788316,0.06681108647424822,0.14188534678862774,0.22516917324570807,0.08352726001716787,-0.041398479668452615,0.04188534678862771,-0.1413984796684526,0.14188534678862774,0.15009491293132854,0.1586015203315474,-0.22468230612553292,-0.09975656643991243,0.10024343356008758,-0.05811465321137227,-0.016472739982832107,-0.09975656643991243,-0.09975656643991243,0.14188534678862774,-0.15811465321137227,-0.016472739982832107,-0.15811465321137227,0.06681108647424822,0.025169173245708054,-0.15811465321137227,0.025169173245708054,-0.05811465321137227,0.12516917324570803,0.12516917324570803,0.025169173245708054,0.30024343356008754,-0.024682306125532905,0.08352726001716787,-0.09975656643991243,-0.016472739982832107,-0.05811465321137227,-0.016472739982832107,-0.19065587652465754,-0.0073720500675771294,-0.17393970298173778,8.375160751237232E-4,-0.04901396329611707,-0.20737205006757709,0.009344123475342636,-0.00766909132509519,-0.24901396329611702,0.14247942930366375,-0.09095291778217551,0.11755368961804336,-0.2991624839248763,-0.19065587652465754,0.16740516898928437,-0.06573013683903728,-0.0073720500675771294,-0.34080439715341626,-0.0073720500675771294,-0.15752057069633607,0.16770221024680243,8.375160751237232E-4,-0.17393970298173778,-0.3906558765246575,-0.12408822361049676,-0.06573013683903728,-0.2322977897531977,-0.015581616210277982,-0.0073720500675771294,-0.09095291778217551,-0.11587865746779591,-0.17423674423925584,-0.057520570696336204,-0.157223529438818,-0.0073720500675771294,0.09262794993242296,-0.09065587652465745,-0.16573013683903715,-0.040804397153416216,8.375160751237232E-4,-0.26573013683903723,-0.14901396329611716,-0.09916248392487637,-0.00766909132509519,-0.0824463103819566,-0.1824463103819567,-0.0824463103819566,-0.12408822361049676,0.21725664836052538,-0.040804397153416216,0.36799925150432067,0.1427764705611818,0.009641164732860918,-0.16543309558151886,0.15128307796140117,-0.2818522278669202,0.19262794993242283,-0.4569264881812998,-0.24871692203859896,0.3263573382757805,0.2427764705611819,0.05949264410410149,0.17620881764702134,0.28441838378972206,0.6427764705611818,0.4594926441041014,-0.1237911823529787,-0.22349414109546029,-0.20677796755254096,-0.21558161621027794,0.292924991189941,0.3260602970182622,-0.42349414109546046,0.12606029701826227,0.09292499118994124,-0.3320007484956793,0.16770221024680243,0.12606029701826227,0.13456690441848118,-0.4487169220385989,-0.2736426617242196,-0.29856840140984,0.23456690441848127,-0.2572235294388181,-0.565433095581519,0.12635733827578033,0.434566904418481,-0.1237911823529787,0.16770221024680243,0.2178507308755615,0.434566904418481,0.5427764705611817,0.1427764705611818,0.20964116473286065,0.49292499118994115,0.5011345573326416,0.18441838378972197,0.20113455733264174,0.41785073087556124,0.042776470561181945],\n",
       "\"petal_length\":[1.4,1.4,1.3,1.5,1.4,1.7,1.4,1.5,1.4,1.5,1.5,1.6,1.4,1.1,1.2,1.5,1.3,1.4,1.7,1.5,1.7,1.5,1.0,1.7,1.9,1.6,1.6,1.5,1.4,1.6,1.6,1.5,1.5,1.4,1.5,1.2,1.3,1.5,1.3,1.5,1.3,1.3,1.3,1.6,1.9,1.4,1.6,1.4,1.5,1.4,4.7,4.5,4.9,4.0,4.6,4.5,4.7,3.3,4.6,3.9,3.5,4.2,4.0,4.7,3.6,4.4,4.5,4.1,4.5,3.9,4.8,4.0,4.9,4.7,4.3,4.4,4.8,5.0,4.5,3.5,3.8,3.7,3.9,5.1,4.5,4.5,4.7,4.4,4.1,4.0,4.4,4.6,4.0,3.3,4.2,4.2,4.2,4.3,3.0,4.1,6.0,5.1,5.9,5.6,5.8,6.6,4.5,6.3,5.8,6.1,5.1,5.3,5.5,5.0,5.1,5.3,5.5,6.7,6.9,5.0,5.7,4.9,6.7,4.9,5.7,6.0,4.8,4.9,5.6,5.8,6.1,6.4,5.6,5.1,5.6,6.1,5.6,5.5,4.8,5.4,5.6,5.1,5.1,5.9,5.7,5.2,5.0,5.2,5.4,5.1]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"petal_width residual\"\n",
       "}],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"color\":\"black\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"point\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"yintercept\":0.0,\n",
       "\"color\":\"#ff00ff\",\n",
       "\"linetype\":\"dashed\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"hline\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"boxplot\",\n",
       "\"margin_side\":\"l\",\n",
       "\"color\":\"black\",\n",
       "\"alpha\":0.1,\n",
       "\"x\":0.0,\n",
       "\"marginal\":true,\n",
       "\"margin_size\":0.03,\n",
       "\"position\":\"dodge\",\n",
       "\"geom\":\"boxplot\",\n",
       "\"fill\":\"black\",\n",
       "\"data\":{\n",
       "\"..middle..\":[NaN,NaN,NaN,-0.016472739982832107],\n",
       "\"..upper..\":[NaN,NaN,NaN,0.13046212134713076],\n",
       "\"..x..\":[0.0,0.0,0.0,0.0],\n",
       "\"..ymax..\":[NaN,NaN,NaN,0.5011345573326416],\n",
       "\"..lower..\":[NaN,NaN,NaN,-0.12408822361049676],\n",
       "\"..ymin..\":[NaN,NaN,NaN,-0.4569264881812998],\n",
       "\"residual\":[0.6427764705611818,-0.565433095581519,0.5427764705611817,NaN]\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"boxplot\",\n",
       "\"orientation\":\"y\",\n",
       "\"margin_side\":\"b\",\n",
       "\"color\":\"black\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"margin_size\":0.03,\n",
       "\"y\":0.0,\n",
       "\"position\":\"dodge\",\n",
       "\"geom\":\"boxplot\",\n",
       "\"fill\":\"black\",\n",
       "\"data\":{\n",
       "\"..middle..\":[4.35],\n",
       "\"..upper..\":[5.1],\n",
       "\"..x..\":[0.0],\n",
       "\"..ymax..\":[6.9],\n",
       "\"..lower..\":[1.6],\n",
       "\"..ymin..\":[1.0],\n",
       "\"petal_length\":[NaN]\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "\"y\":\"..density..\"\n",
       "},\n",
       "\"stat\":\"bin\",\n",
       "\"margin_side\":\"t\",\n",
       "\"color\":\"black\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"margin_size\":0.4,\n",
       "\"position\":\"stack\",\n",
       "\"binwidth\":0.19666666666666668,\n",
       "\"geom\":\"histogram\",\n",
       "\"fill\":\"black\",\n",
       "\"data\":{\n",
       "\"..density..\":[0.03615819209039548,0.10847457627118644,0.6870056497175141,0.7593220338983051,0.14463276836158193,0.07231638418079096,0.0,0.0,0.0,0.0,0.03615819209039548,0.0,0.07231638418079096,0.10847457627118644,0.07231638418079096,0.28926553672316385,0.25310734463276835,0.21694915254237288,0.28926553672316385,0.28926553672316385,0.3254237288135593,0.43389830508474575,0.14463276836158193,0.1807909604519774,0.3254237288135593,0.1807909604519774,0.1807909604519774,0.03615819209039548,0.03615819209039548,0.10847457627118644,0.03615819209039548,0.0],\n",
       "\"petal_length\":[0.9606666666666668,1.1573333333333335,1.354,1.5506666666666669,1.7473333333333336,1.9440000000000002,2.140666666666667,2.3373333333333335,2.5340000000000003,2.730666666666667,2.9273333333333333,3.1240000000000006,3.320666666666667,3.517333333333334,3.7140000000000004,3.9106666666666667,4.107333333333334,4.304,4.5006666666666675,4.697333333333334,4.894,5.090666666666667,5.287333333333334,5.484,5.680666666666667,5.8773333333333335,6.074000000000001,6.270666666666667,6.467333333333333,6.664000000000001,6.860666666666667,7.057333333333334]\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "\"x\":\"..density..\"\n",
       "},\n",
       "\"stat\":\"bin\",\n",
       "\"orientation\":\"y\",\n",
       "\"margin_side\":\"r\",\n",
       "\"color\":\"black\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"stack\",\n",
       "\"binwidth\":0.19666666666666668,\n",
       "\"geom\":\"histogram\",\n",
       "\"fill\":\"black\",\n",
       "\"data\":{\n",
       "\"residual\":[-0.6047664289148522,-0.40809976224818556,-0.21143309558151885,-0.014766428914852137,0.18190023775181452,0.3785669044184812,0.5752335710851479,0.7719002377518145],\n",
       "\"..density..\":[0.04414245245847869,0.26485471475087213,1.5891282885052327,2.6485471475087214,1.4567009311297967,0.44142452458478687,0.17656980983391476,0.0]\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"density\",\n",
       "\"margin_side\":\"t\",\n",
       "\"color\":\"magenta\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"stack\",\n",
       "\"geom\":\"area\",\n",
       "\"fill\":\"magenta\",\n",
       "\"data\":{\n",
       "\"residual\":[0.16379256484626536,0.16617614566782102,0.16853310528454452,0.17086133983703944,0.17315874794550934,0.17542323385597217,0.1776527106201412,0.17984510330241665,0.18199835220729513,0.18411041612034781,0.18617927555580724,0.1882029360037002,0.19017943116937883,0.19210682619824193,0.19398322087839984,0.19580675281401022,0.19757560056201784,0.19928798672505194,0.20094218099327596,0.2025365031280608,0.20406932588041948,0.20553907783727463,0.20694424618873583,0.2082833794097372,0.20955508984954382,0.21075805622282107,0.21189102599620208,0.21295281766447893,0.21394232291083426,0.21485850864575928,0.215700418919623,0.21646717670413168,0.21715798553824725,0.21777213103447346,0.21830898224172315,0.21876799286139795,0.2191487023136149,0.2194507366509363,0.21967380931732336,0.21981772175043748,0.21988236382580179,0.21986771414174275,0.2197738401444517,0.21960089809289463,0.21934913286371943,0.2190188775967228,0.2186105531818343,0.2181246675889965,0.2175618150427017,0.21692267504334467,0.2162080112379527,0.21541867014320232,0.21455557972402672,0.2136197478314627,0.21261226050372842,0.21153428013486567,0.21038704351558613,0.20917185975127223,0.2078901080623667,0.2065432354726534,0.20513275439118148,0.20366024009382813,0.20212732811069606,0.20053571152574678,0.19888713819523793,0.19718340789169175,0.19542636938025523,0.1936179174344137,0.1917599897981268,0.18985456410151155,0.18790365473724593,0.18590930970490252,0.1838736074304101,0.1817986535678382,0.17968657779066133,0.17753953057958635,0.1753596800139766,0.17314920857377747,0.17091030995875922,0.16864518593174005,0.16635604319231023,0.16404509028740763,0.16171453456489895,0.1593665791761443,0.1570034201332817,0.15462724342675307,0.1522402222083583,0.14984451404485508,0.1474422582468743,0.1450355732776392,0.14262655424570198,0.14021727048561683,0.13780976323018074,0.13540604337756706,0.13300808935637604,0.13061784509132457,0.1282372180719709,0.1258680775265878,0.12351225270295509,0.12117153125756161,0.11884765775438227,0.11654233227409501,0.11425720913430984,0.11199389572107298,0.10975395143163247,0.10753888672816049,0.10535016230184867,0.10535016230184867,0.10318918834653594,0.10105732394075405,0.09895587653683385,0.09688610155547621,0.09484920208395224,0.09284632867588383,0.09087857925035171,0.08894699908786519,0.08705258092056474,0.08519626511383588,0.08337893993636693,0.08160144191552766,0.07986455627481329,0.07816901744997953,0.07651550968038145,0.07490466767193095,0.07333707732801553,0.07181327654463307,0.07033375606595645,0.06889896039648497,0.06750928876591031,0.06616509614280244,0.06486669429321341,0.06361435288029167,0.06240830060102057,0.06124872635621107,0.060135780449913745,0.0590695758144577,0.05805018925737718,0.05707766272654594,0.0561520045899087,0.05527319092627647,0.05444116682373824,0.053655847682330275,0.05291712051770182,0.05222484526262595,0.051578856063300794,0.0509789625675125,0.050424951201843995,0.049916586435231024,0.04945361202630231,0.04903575225205737,0.04866271311557744,0.04833418353058356,0.048049836480805096,0.04780933015224233,0.04761230903655114,0.04745840500391106,0.04734723834386984,0.047278418772797016,0.04725154640670915,0.047266212698364486,0.04732200133765034,0.04741848911442397,0.04755524674308419,0.04773183964828154,0.04794782871129525,0.0482027709767215,0.04849622031923376,0.04882772807028705,0.04919684360475058,0.04960311488754869,0.050046088980499795,0.05052531250963806,0.05104033209338788,0.051590694732062035,0.05217594815922937,0.052795641155580594,0.05344932382600206,0.05413654784062877,0.05485686664072612,0.05560983561030472,0.056395012214437254,0.05721195610529514,0.0580602291969799,0.05893939571026236,0.05984902218839011,0.06078867748516238,0.061757932726497,0.06275636124675389,0.0637835385010997,0.06483904195521979,0.06592245095370451,0.06703334656845102,0.06817131142843062,0.0693359295321814,0.07052678604439057,0.0717434670779297,0.07298555946270648,0.07425265050268917,0.0755443277224557,0.07686017860460312,0.07819979031934521,0.07956274944760607,0.08094864169890355,0.0823570516252878,0.08378756233258834,0.08523975519018781,0.08671320954051837,0.08820750240945062,0.08972220821870583,0.09125689850139863,0.0928111416217808,0.09438450250021667,0.09597654234439364,0.09758681838772308,0.09921488363585843,0.10086028662220776,0.10252257117328774,0.10420127618471016,0.10589593540857052,0.10760607725294345,0.10933122459416149,0.11107089460250653,0.11282459858189718,0.11459184182411225,0.11637212347804758,0.11816493643445942,0.11996976722660098,0.1217860959471177,0.12361339618152399,0.12545113495853316,0.1272987727174808,0.12915576329303313,0.1310215539173244,0.13289558523964018,0.13477729136370864,0.13666609990262793,0.13856143205142288,0.14046270267717756,0.14236932042665165,0.1442806878512702,0.1461962015493126,0.14811525232511594,0.15003722536506134,0.15196150043008197,0.15388745206440638,0.15581444982020937,0.15774185849782071,0.15966903840111818,0.16159534560768993,0.16352013225334414,0.16544274683050705,0.16736253450002636,0.16927883741588826,0.17119099506232255,0.17309834460275209,0.17500022124003548,0.1768959585874227,0.17878488904963186,0.18066634421344302,0.18253965524719007,0.18440415330851634,0.18625916995975075,0.18810403759026018,0.1899380898450974,0.191760662059298,0.19357109169712922,0.19536871879562118,0.19715288641168682,0.19892294107214195,0.20067823322592987,0.20241811769785492,0.20414195414313205,0.20584910750204577,0.2075389484540314,0.2092108538704847,0.21086420726559502,0.21249839924453318,0.21411282794829045,0.21570689949450197,0.2172800284135768,0.2188316380794673,0.2203611611344176,0.22186803990704324,0.2233517268230959,0.22481168480828656,0.22624738768253355,0.2276583205450406,0.22904398014959498,0.23040387526950562,0.23173752705160613,0.23173752705160613,0.23304446935877085,0.23432424910039978,0.2355764265503436,0.2368005756517718,0.23799628430847738,0.2391631546621665,0.24030080335526408,0.24140886177881196,0.24248697630505775,0.2435348085043306,0.24455203534585374,0.2455383493821522,0.2464934589167329,0.2474170881547566,0.24830897733643884,0.24916888285294106,0.24999657734454842,0.2507918497809592,0.2515545055235349,0.25228436636940155,0.2529812705773068,0.2536450728751953,0.2542756444494693,0.2548728729159585,0.2554366622726384,0.2559669328341903,0.2564636211485097,0.2569266798953211,0.25735607776709046,0.2577517993324501,0.25811384488240385,0.258442230259605,0.258736986671037,0.2589981604844638,0.2592258130090539,0.25942002026061367,0.2595808727118969,0.2597084750285022,0.2598029457908926,0.2598644172031056,0.2598930347887551,0.259888957074963,0.2598523552648663,0.2597834128994031,0.2596823255090797,0.25954930025646034,0.2593845555701423,0.25918832077099546,0.25896083569146766,0.2587023502887765,0.2584131242528156,0.2580934266096282,0.2577435353212952,0.25736373688311454,0.2569543259189269,0.2565156047754748,0.2560478831166627,0.2555514775185874,0.25502671106621355,0.2544739129525464,0.25389341808115723,0.2532855666728955,0.2526507038776099,0.25198917939168114,0.25130134708215296,0.25058756461821086,0.24984819311075404,0.2490835967607523,0.24829414251707158,0.24748019974440158,0.24664213990188946,0.24578033623305118,0.24489516346748114,0.24398699753484632,0.24305621529160845,0.24210319426086527,0.24112831238566354,0.24013194779608318,0.24013194779608318,0.23911447859034562,0.23807628263014594,0.23701773735036233,0.235939219583239,0.2348411053970961,0.2337237699495556,0.2325875873552313,0.23143293056777517,0.2302601712761189,0.2290696798147033,0.22786182508743522,0.22663697450506523,0.225395493935629,0.2241377476675555,0.22286409838499238,0.22157490715486336,0.22027053342513117,0.2189513350336992,0.21761766822734893,0.216269887690083,0.21490834658020314,0.21353339657543807,0.21214538792539508,0.21074466951060572,0.2093315889073999,0.20790649245784212,0.20646972534394162,0.20502163166534446,0.2035625545197077,0.20209283608495765,0.20061281770263042,0.19912283996150337,0.19762324278072996,0.19611436549170538,0.1945965469179032,0.19307012545194374,0.19153543912917304,0.1899928256970588,0.18844262267973605,0.1868851674370632,0.1853207972175867,0.18374984920484125,0.18217266055645934,0.1805895684355918,0.17900091003419513,0.17740702258777577,0.17580824338123174,0.1742049097454771,0.17259735904458157,0.17098592865321074,0.1693709559241931,0.16775277814610115,0.1661317324907752,0.16450815595077384,0.16288238526678273,0.1612547568450656,0.15962560666508635,0.15799527017748513,0.15636408219263406,0.15473237676004586,0.15310048703895252,0.1514687451604165,0.1498374820813727,0.1482070274310459,0.1465777093502164,0.14494985432384933,0.14332378700762874,0.14169983004897097,0.14007830390311438,0.13845952664491218,0.13684381377696805,0.13523147803477994,0.13362282918956483,0.13201817384945555,0.1304178152597627,0.12882205310300573,0.1272311832994146,0.1256454978086057,0.12406528443312939,0.12249082662458098,0.120922403292953,0.11936028861989993,0.11780475187656327,0.11625605724658951,0.11471446365495398,0.11318022460317306,0.11165358801146795,0.11013479606840998,0.10862408508854668,0.1071216853784787,0.10562782111181648,0.1041427102134179,0.10266656425326114,0.10119958835027652,0.0997419810864155,0.09829393443119666,0.09685563367692705,0.09542725738475359,0.0940089773416599,0.09260095852847937,0.09120335909895365,0.08981633036982478,0.08844001682190711,0.08707455611204362,0.0857200790958143,0.08437670986082196,0.08304456577034589,0.08172375751711579,0.08041438918692563,0.07911655833177021,0.07783035605216139,0.07655586708824604,0.07529316991932325,0.07404233687133183,0.0728034342318569,0.07157652237218093,0.0703616558758887,0.06915888367351752,0.06796824918272987,0.06678979045347487,0.06562354031759576,0.06446952654233229,0.06332777198716508,0.06219829476344488,0.06108110839625134,0.059976221987927986,0.058883640382746356,0.05780336433215696,0.05673539066009821,0.055679712427841845,0.0546363190978695,0.05360519669628972,0.05258632797332194,0.051579692561392006,0.050585267130406245,0.04960302553979078,0.04863293898690723,0.047674976151479975,0.04672910333569567,0.04579528459966146,0.04487348189193695,0.043963655174880815,0.04306576254458284,0.04217976034517963,0.041305603277382585],\n",
       "\"..quantile..\":[0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\n",
       "\"petal_length\":[1.0,1.011545988258317,1.023091976516634,1.034637964774951,1.0461839530332682,1.057729941291585,1.0692759295499021,1.0808219178082192,1.092367906066536,1.1039138943248532,1.1154598825831703,1.1270058708414874,1.1385518590998043,1.1500978473581214,1.1616438356164385,1.1731898238747553,1.1847358121330724,1.1962818003913895,1.2078277886497064,1.2193737769080235,1.2309197651663406,1.2424657534246575,1.2540117416829746,1.2655577299412917,1.2771037181996086,1.2886497064579256,1.3001956947162427,1.3117416829745596,1.3232876712328767,1.3348336594911938,1.3463796477495107,1.3579256360078278,1.3694716242661449,1.3810176125244618,1.3925636007827789,1.404109589041096,1.4156555772994128,1.42720156555773,1.438747553816047,1.450293542074364,1.461839530332681,1.473385518590998,1.484931506849315,1.496477495107632,1.5080234833659492,1.519569471624266,1.5311154598825834,1.5426614481409002,1.554207436399217,1.5657534246575344,1.5772994129158513,1.5888454011741682,1.6003913894324855,1.6119373776908024,1.6234833659491192,1.6350293542074366,1.6465753424657534,1.6581213307240703,1.6696673189823876,1.6812133072407045,1.6927592954990216,1.7043052837573387,1.7158512720156556,1.7273972602739727,1.7389432485322898,1.7504892367906066,1.7620352250489237,1.7735812133072408,1.7851272015655577,1.7966731898238748,1.808219178082192,1.8197651663405088,1.8313111545988259,1.842857142857143,1.8544031311154598,1.865949119373777,1.877495107632094,1.889041095890411,1.900587084148728,1.912133072407045,1.923679060665362,1.935225048923679,1.9467710371819962,1.958317025440313,1.9698630136986301,1.9814090019569472,1.9929549902152641,2.0045009784735814,2.0160469667318983,2.027592954990215,2.039138943248532,2.0506849315068494,2.0622309197651667,2.0737769080234836,2.0853228962818005,2.0968688845401173,2.108414872798434,2.1199608610567515,2.131506849315069,2.1430528375733857,2.1545988258317026,2.1661448140900195,2.1776908023483363,2.1892367906066537,2.200782778864971,2.212328767123288,2.2238747553816047,2.2238747553816047,2.2354207436399216,2.2469667318982385,2.258512720156556,2.270058708414873,2.28160469667319,2.293150684931507,2.3046966731898237,2.3162426614481406,2.327788649706458,2.3393346379647753,2.350880626223092,2.362426614481409,2.373972602739726,2.385518590998043,2.39706457925636,2.4086105675146774,2.4201565557729943,2.431702544031311,2.443248532289628,2.4547945205479453,2.466340508806262,2.4778864970645795,2.4894324853228964,2.5009784735812133,2.51252446183953,2.5240704500978475,2.5356164383561643,2.5471624266144817,2.5587084148727985,2.5702544031311154,2.5818003913894323,2.5933463796477496,2.6048923679060665,2.616438356164384,2.6279843444227007,2.6395303326810176,2.6510763209393344,2.6626223091976517,2.674168297455969,2.685714285714286,2.697260273972603,2.7088062622309197,2.7203522504892366,2.731898238747554,2.743444227005871,2.754990215264188,2.766536203522505,2.778082191780822,2.7896281800391387,2.801174168297456,2.8127201565557733,2.82426614481409,2.835812133072407,2.847358121330724,2.858904109589041,2.870450097847358,2.8819960861056755,2.8935420743639924,2.9050880626223092,2.916634050880626,2.9281800391389434,2.9397260273972603,2.9512720156555776,2.9628180039138945,2.9743639921722114,2.9859099804305282,2.9974559686888456,3.0090019569471624,3.0205479452054793,3.0320939334637966,3.0436399217221135,3.0551859099804304,3.0667318982387477,3.0782778864970646,3.089823874755382,3.1013698630136988,3.1129158512720156,3.124461839530333,3.13600782778865,3.1475538160469667,3.159099804305284,3.170645792563601,3.182191780821918,3.193737769080235,3.205283757338552,3.216829745596869,3.228375733855186,3.239921722113503,3.25146771037182,3.2630136986301372,3.274559686888454,3.286105675146771,3.2976516634050883,3.309197651663405,3.320743639921722,3.3322896281800394,3.3438356164383563,3.355381604696673,3.3669275929549904,3.3784735812133073,3.390019569471624,3.4015655577299415,3.4131115459882584,3.4246575342465753,3.4362035225048926,3.4477495107632095,3.4592954990215263,3.4708414872798437,3.4823874755381605,3.4939334637964774,3.5054794520547947,3.5170254403131116,3.5285714285714285,3.540117416829746,3.5516634050880627,3.5632093933463795,3.574755381604697,3.5863013698630137,3.5978473581213306,3.609393346379648,3.620939334637965,3.6324853228962817,3.644031311154599,3.655577299412916,3.667123287671233,3.67866927592955,3.690215264187867,3.7017612524461843,3.713307240704501,3.724853228962818,3.7363992172211353,3.747945205479452,3.759491193737769,3.7710371819960864,3.7825831702544033,3.79412915851272,3.8056751467710375,3.8172211350293543,3.828767123287671,3.8403131115459885,3.8518590998043054,3.8634050880626223,3.8749510763209396,3.8864970645792565,3.8980430528375734,3.9095890410958907,3.9211350293542075,3.9326810176125244,3.9442270058708417,3.9557729941291586,3.9673189823874755,3.978864970645793,3.9904109589041097,4.001956947162427,4.013502935420744,4.02504892367906,4.036594911937378,4.048140900195695,4.059686888454012,4.071232876712329,4.082778864970646,4.094324853228963,4.105870841487279,4.117416829745597,4.128962818003914,4.140508806262231,4.152054794520549,4.163600782778865,4.175146771037182,4.186692759295499,4.198238747553816,4.209784735812133,4.22133072407045,4.232876712328768,4.244422700587084,4.255968688845401,4.267514677103718,4.279060665362035,4.290606653620353,4.302152641878669,4.313698630136987,4.3252446183953035,4.3252446183953035,4.33679060665362,4.348336594911938,4.359882583170254,4.371428571428572,4.382974559686889,4.394520547945206,4.4060665362035225,4.417612524461839,4.429158512720157,4.440704500978473,4.452250489236791,4.463796477495108,4.475342465753425,4.486888454011742,4.498434442270058,4.509980430528376,4.521526418786693,4.53307240704501,4.544618395303327,4.556164383561644,4.567710371819961,4.579256360078277,4.590802348336595,4.602348336594912,4.613894324853229,4.625440313111547,4.636986301369863,4.64853228962818,4.660078277886497,4.671624266144814,4.683170254403131,4.694716242661448,4.706262230919766,4.717808219178082,4.7293542074363994,4.740900195694716,4.752446183953033,4.763992172211351,4.775538160469667,4.787084148727985,4.798630136986302,4.8101761252446185,4.821722113502935,4.833268101761252,4.84481409001957,4.856360078277887,4.867906066536204,4.879452054794521,4.8909980430528375,4.902544031311155,4.914090019569471,4.925636007827789,4.937181996086106,4.948727984344423,4.9602739726027405,4.9718199608610565,4.983365949119374,4.994911937377691,5.006457925636008,5.018003913894325,5.029549902152642,5.041095890410959,5.052641878669276,5.064187866927593,5.07573385518591,5.087279843444227,5.098825831702544,5.110371819960861,5.1219178082191785,5.133463796477495,5.145009784735812,5.156555772994129,5.168101761252446,5.179647749510764,5.191193737769081,5.2027397260273975,5.214285714285714,5.225831702544031,5.225831702544031,5.237377690802348,5.248923679060666,5.260469667318983,5.2720156555773,5.2835616438356166,5.295107632093933,5.30665362035225,5.318199608610568,5.329745596868885,5.341291585127202,5.352837573385519,5.364383561643836,5.375929549902152,5.38747553816047,5.399021526418787,5.410567514677104,5.422113502935421,5.433659491193738,5.445205479452055,5.456751467710372,5.468297455968689,5.479843444227006,5.491389432485323,5.50293542074364,5.514481409001957,5.5260273972602745,5.537573385518591,5.549119373776908,5.560665362035225,5.572211350293542,5.583757338551859,5.595303326810177,5.6068493150684935,5.61839530332681,5.629941291585127,5.641487279843444,5.653033268101761,5.664579256360079,5.676125244618396,5.6876712328767125,5.699217221135029,5.710763209393346,5.722309197651663,5.733855185909981,5.745401174168298,5.756947162426615,5.7684931506849315,5.780039138943248,5.791585127201566,5.803131115459883,5.8146771037182,5.826223091976517,5.837769080234834,5.8493150684931505,5.860861056751468,5.872407045009785,5.883953033268102,5.895499021526419,5.907045009784736,5.918590998043053,5.93013698630137,5.941682974559687,5.953228962818004,5.964774951076321,5.976320939334638,5.987866927592955,5.999412915851273,6.010958904109589,6.022504892367906,6.034050880626223,6.04559686888454,6.057142857142857,6.068688845401175,6.080234833659492,6.0917808219178085,6.103326810176125,6.114872798434442,6.126418786692759,6.137964774951077,6.149510763209394,6.161056751467711,6.1726027397260275,6.184148727984344,6.195694716242661,6.207240704500979,6.218786692759296,6.230332681017613,6.24187866927593,6.2534246575342465,6.264970645792563,6.276516634050881,6.288062622309198,6.299608610567515,6.311154598825832,6.322700587084149,6.334246575342466,6.345792563600783,6.3573385518591,6.368884540117417,6.380430528375734,6.391976516634051,6.4035225048923685,6.415068493150685,6.426614481409002,6.438160469667319,6.449706457925636,6.461252446183953,6.472798434442271,6.4843444227005875,6.495890410958904,6.507436399217221,6.518982387475538,6.530528375733855,6.542074363992173,6.55362035225049,6.5651663405088065,6.576712328767123,6.58825831702544,6.599804305283757,6.611350293542075,6.622896281800392,6.634442270058709,6.6459882583170256,6.657534246575342,6.669080234833659,6.680626223091977,6.692172211350294,6.703718199608611,6.715264187866928,6.726810176125245,6.738356164383561,6.749902152641879,6.761448140900196,6.772994129158513,6.78454011741683,6.796086105675147,6.807632093933464,6.819178082191781,6.830724070450098,6.842270058708415,6.853816046966732,6.865362035225049,6.876908023483366,6.8884540117416835,6.9]\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"density\",\n",
       "\"orientation\":\"y\",\n",
       "\"margin_side\":\"r\",\n",
       "\"color\":\"magenta\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"stack\",\n",
       "\"geom\":\"area\",\n",
       "\"fill\":\"magenta\",\n",
       "\"data\":{\n",
       "\"residual\":[-0.565433095581519,-0.5630686932994393,-0.5607042910173597,-0.5583398887352801,-0.5559754864532004,-0.5536110841711207,-0.5512466818890411,-0.5488822796069615,-0.5465178773248818,-0.5441534750428022,-0.5417890727607225,-0.5394246704786428,-0.5370602681965632,-0.5346958659144836,-0.5323314636324039,-0.5299670613503242,-0.5276026590682446,-0.525238256786165,-0.5228738545040853,-0.5205094522220056,-0.518145049939926,-0.5157806476578464,-0.5134162453757667,-0.511051843093687,-0.5086874408116074,-0.5063230385295278,-0.5039586362474481,-0.5015942339653685,-0.4992298316832888,-0.49686542940120915,-0.4945010271191295,-0.4921366248370499,-0.4897722225549702,-0.48740782027289054,-0.4850434179908109,-0.4826790157087313,-0.4803146134266516,-0.477950211144572,-0.47558580886249235,-0.4732214065804127,-0.470857004298333,-0.46849260201625337,-0.46612819973417374,-0.46376379745209406,-0.46139939517001444,-0.45903499288793476,-0.45667059060585513,-0.45430618832377545,-0.4519417860416958,-0.4495773837596162,-0.4472129814775365,-0.4448485791954569,-0.4424841769133772,-0.4401197746312976,-0.4377553723492179,-0.4353909700671383,-0.43302656778505866,-0.430662165502979,-0.4282977632208993,-0.42593336093881967,-0.42356895865674005,-0.42120455637466037,-0.41884015409258074,-0.4164757518105011,-0.41411134952842144,-0.41174694724634175,-0.40938254496426213,-0.4070181426821825,-0.4046537404001028,-0.4022893381180232,-0.3999249358359436,-0.3975605335538639,-0.3951961312717842,-0.3928317289897046,-0.39046732670762496,-0.3881029244255453,-0.38573852214346566,-0.38337411986138603,-0.38100971757930635,-0.37864531529722667,-0.37628091301514704,-0.3739165107330674,-0.37155210845098774,-0.36918770616890806,-0.36682330388682843,-0.3644589016047488,-0.3620944993226691,-0.3597300970405895,-0.3573656947585099,-0.3550012924764302,-0.3526368901943505,-0.3502724879122709,-0.34790808563019127,-0.3455436833481116,-0.34317928106603196,-0.34081487878395234,-0.33845047650187265,-0.336086074219793,-0.33372167193771335,-0.3313572696556337,-0.32899286737355404,-0.3266284650914744,-0.3242640628093948,-0.3218996605273151,-0.31953525824523543,-0.3171708559631558,-0.3148064536810762,-0.3124420513989965,-0.3100776491169169,-0.3077132468348372,-0.30534884455275757,-0.3029844422706779,-0.30062003998859826,-0.29825563770651864,-0.29589123542443896,-0.29352683314235933,-0.29116243086027965,-0.28879802857820003,-0.28643362629612035,-0.2840692240140407,-0.2817048217319611,-0.2793404194498814,-0.2769760171678018,-0.2746116148857221,-0.2722472126036425,-0.2698828103215628,-0.2675184080394832,-0.2651540057574035,-0.2627896034753239,-0.26042520119324425,-0.25806079891116457,-0.25569639662908494,-0.25333199434700526,-0.25096759206492564,-0.24860318978284596,-0.24623878750076633,-0.24387438521868665,-0.24150998293660703,-0.2391455806545274,-0.23678117837244772,-0.2344167760903681,-0.23205237380828841,-0.2296879715262088,-0.2273235692441291,-0.22495916696204948,-0.22259476467996986,-0.22023036239789018,-0.21786596011581055,-0.21550155783373087,-0.21313715555165125,-0.21077275326957157,-0.20840835098749194,-0.20604394870541232,-0.20367954642333264,-0.201315144141253,-0.19895074185917333,-0.1965863395770937,-0.19422193729501402,-0.1918575350129344,-0.18949313273085472,-0.1871287304487751,-0.18476432816669547,-0.1823999258846158,-0.18003552360253616,-0.17767112132045648,-0.17530671903837686,-0.17294231675629718,-0.17057791447421755,-0.16821351219213787,-0.16584910991005825,-0.16348470762797862,-0.16112030534589894,-0.15875590306381931,-0.15639150078173963,-0.15402709849966,-0.15166269621758033,-0.1492982939355007,-0.14693389165342108,-0.1445694893713414,-0.14220508708926177,-0.1398406848071821,-0.1398406848071821,-0.13747628252510247,-0.13511188024302279,-0.13274747796094316,-0.13038307567886354,-0.12801867339678386,-0.12565427111470423,-0.12328986883262455,-0.12092546655054492,-0.11856106426846524,-0.11619666198638562,-0.11383225970430594,-0.11146785742222631,-0.10910345514014669,-0.10673905285806701,-0.10437465057598738,-0.1020102482939077,-0.09964584601182808,-0.0972814437297484,-0.09491704144766877,-0.09255263916558909,-0.09018823688350946,-0.08782383460142984,-0.08545943231935016,-0.08309503003727053,-0.08073062775519085,-0.07836622547311123,-0.07600182319103155,-0.07363742090895192,-0.0712730186268723,-0.06890861634479262,-0.06654421406271299,-0.06417981178063337,-0.061815409498553686,-0.059451007216474006,-0.057086604934394325,-0.054722202652314755,-0.052357800370235075,-0.049993398088155394,-0.047628995806075825,-0.045264593523996144,-0.04290019124191646,-0.04053578895983678,-0.03817138667775721,-0.03580698439567753,-0.03344258211359785,-0.031078179831518282,-0.0287137775494386,-0.02634937526735892,-0.02398497298527924,-0.02162057070319967,-0.01925616842111999,-0.01689176613904031,-0.01689176613904031,-0.01452736385696074,-0.01216296157488106,-0.009798559292801379,-0.007434157010721698,-0.0050697547286421285,-0.002705352446562448,-3.4095016448276727E-4,0.0020234521175968023,0.004387854399676483,0.0067522566817561636,0.009116658963835844,0.011481061245915414,0.013845463527995094,0.016209865810074775,0.018574268092154456,0.020938670374234025,0.023303072656313706,0.025667474938393386,0.028031877220472956,0.030396279502552637,0.03276068178463232,0.035125084066712,0.03748948634879157,0.03985388863087125,0.04221829091295093,0.0445826931950305,0.04694709547711018,0.04931149775918986,0.05167590004126954,0.05404030232334911,0.05640470460542879,0.05876910688750847,0.06113350916958804,0.06349791145166772,0.0658623137337474,0.06822671601582708,0.07059111829790665,0.07295552057998633,0.07531992286206601,0.0776843251441457,0.08004872742622526,0.08241312970830494,0.08477753199038462,0.0871419342724642,0.08950633655454387,0.09187073883662356,0.09423514111870324,0.0965995434007828,0.09896394568286249,0.10132834796494217,0.10369275024702174,0.10605715252910142,0.1084215548111811,0.11078595709326078,0.11315035937534035,0.11551476165742003,0.11787916393949971,0.12024356622157928,0.12260796850365896,0.12497237078573864,0.12497237078573864,0.12733677306781832,0.1297011753498979,0.13206557763197757,0.13442997991405725,0.13679438219613682,0.1391587844782165,0.14152318676029618,0.14388758904237586,0.14625199132445543,0.1486163936065351,0.1509807958886148,0.15334519817069436,0.15570960045277404,0.15807400273485372,0.1604384050169334,0.16280280729901297,0.16516720958109266,0.16753161186317234,0.16989601414525202,0.1722604164273316,0.17462481870941127,0.17698922099149095,0.17935362327357052,0.1817180255556502,0.18408242783772988,0.18644683011980956,0.18881123240188913,0.1911756346839688,0.1935400369660485,0.19590443924812806,0.19826884153020774,0.20063324381228742,0.2029976460943671,0.20536204837644667,0.20772645065852635,0.21009085294060603,0.2124552552226856,0.21481965750476528,0.21718405978684496,0.21954846206892464,0.2219128643510042,0.2242772666330839,0.22664166891516357,0.22900607119724325,0.23137047347932282,0.2337348757614025,0.23609927804348219,0.23846368032556176,0.24082808260764144,0.24319248488972112,0.2455568871718008,0.24792128945388037,0.25028569173596005,0.25265009401803973,0.2550144963001193,0.257378898582199,0.25974330086427866,0.26210770314635834,0.2644721054284379,0.2668365077105176,0.26920090999259727,0.27156531227467684,0.2739297145567565,0.2762941168388362,0.2786585191209159,0.28102292140299545,0.28338732368507513,0.2857517259671548,0.2881161282492344,0.29048053053131406,0.29284493281339374,0.2952093350954734,0.297573737377553,0.2999381396596327,0.30230254194171235,0.3046669442237919,0.3070313465058716,0.3093957487879513,0.31176015107003097,0.31412455335211054,0.3164889556341902,0.3188533579162699,0.3212177601983496,0.32358216248042915,0.32594656476250883,0.3283109670445885,0.3306753693266681,0.33303977160874776,0.33540417389082744,0.3377685761729071,0.3401329784549867,0.34249738073706637,0.34486178301914605,0.3472261853012256,0.3495905875833053,0.351954989865385,0.35431939214746466,0.35668379442954423,0.3590481967116239,0.3614125989937036,0.36377700127578316,0.36614140355786284,0.3685058058399425,0.3708702081220222,0.3732346104041018,0.37559901268618145,0.37796341496826114,0.3803278172503408,0.3826922195324204,0.38505662181450007,0.38742102409657975,0.3897854263786593,0.392149828660739,0.3945142309428187,0.39687863322489836,0.39924303550697793,0.4016074377890576,0.4039718400711373,0.40633624235321686,0.40870064463529654,0.4110650469173762,0.4134294491994559,0.41579385148153547,0.41815825376361515,0.42052265604569483,0.4228870583277744,0.4252514606098541,0.42761586289193376,0.42998026517401344,0.432344667456093,0.4347090697381728,0.43707347202025226,0.43943787430233194,0.4418022765844116,0.4441666788664913,0.446531081148571,0.44889548343065067,0.45125988571273035,0.4536242879948098,0.4559886902768895,0.45835309255896917,0.46071749484104885,0.4630818971231285,0.4654462994052082,0.4678107016872879,0.47017510396936735,0.47253950625144703,0.4749039085335267,0.4772683108156064,0.47963271309768607,0.48199711537976575,0.48436151766184543,0.4867259199439249,0.48909032222600457,0.49145472450808425,0.49381912679016393,0.4961835290722436,0.4985479313543233,0.500912333636403,0.5032767359184824,0.5056411382005621,0.5080055404826418,0.5103699427647215,0.5127343450468012,0.5150987473288808,0.5174631496109605,0.51982755189304,0.5221919541751197,0.5245563564571993,0.526920758739279,0.5292851610213587,0.5316495633034384,0.5340139655855181,0.5363783678675975,0.5387427701496772,0.5411071724317569,0.5434715747138366,0.5458359769959162,0.5482003792779959,0.5505647815600756,0.5529291838421551,0.5552935861242347,0.5576579884063144,0.5600223906883941,0.5623867929704738,0.5647511952525535,0.5671155975346331,0.5694799998167126,0.5718444020987923,0.574208804380872,0.5765732066629516,0.5789376089450313,0.581302011227111,0.5836664135091907,0.5860308157912704,0.5883952180733498,0.5907596203554295,0.5931240226375092,0.5954884249195889,0.5978528272016685,0.6002172294837482,0.6025816317658279,0.6049460340479074,0.607310436329987,0.6096748386120667,0.6120392408941464,0.6144036431762261,0.6167680454583058,0.6191324477403854,0.6214968500224649,0.6238612523045446,0.6262256545866243,0.628590056868704,0.6309544591507836,0.6333188614328633,0.635683263714943,0.6380476659970225,0.6404120682791021,0.6427764705611818],\n",
       "\"..quantile..\":[0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0],\n",
       "\"petal_length\":[0.06369062959121824,0.06523785862023584,0.06681002156591372,0.06840931378349398,0.07003799080353539,0.07169834521838545,0.07339268225265115,0.07512329426489503,0.07689243445008612,0.07870229003191406,0.08055495525056434,0.08245240446465323,0.08439646569544128,0.0863887949469646,0.0884308516371584,0.09052387547226841,0.09266886508978599,0.09486655878378344,0.09711741761092252,0.09942161115566166,0.10177900620947385,0.10418915859142472,0.10665130830653835,0.10916437820433744,0.11172697626315414,0.11433740158671957,0.11699365415859667,0.1196934483577416,0.12243423019538573,0.12521319819003154,0.12802732775426356,0.13087339892478594,0.13374802722618184,0.1366476974198945,0.13956879985332704,0.1425076690902821,0.14546062447360497,0.14842401224430682,0.1513942488189554,0.15436786480903578,0.157341549352557,0.16031219431958926,0.16327693794978146,0.16623320748128342,0.16917876033688212,0.17211172344446282,0.1750306302850096,0.17793445528204158,0.18082264517140273,0.18369514701936318,0.18655243258969664,0.18939551879634708,0.19222598401709085,0.19504598008470897,0.19785823981516135,0.20066607997655622,0.20347339964783906,0.20628467396151226,0.2091049432698832,0.2119397978187696,0.21479535805575678,0.21767825074162137,0.22059558107283977,0.22355490105991319,0.226564174440096,0.2296317384337425,0.2327662626805964,0.2359767057156819,0.23927226936387977,0.2426623514475818,0.2461564972130146,0.24976434988777205,0.25349560078490396,0.25735993936754703,0.2613670036827181,0.26552633156359057,0.26984731298661546,0.27433914395328596,0.27901078224659676,0.28387090538942,0.288927871106494,0.29418968056374495,0.29966394462858403,0.3053578533629554,0.31127814892756417,0.3174311020412709,0.3238224921043753,0.3304575910588306,0.33734115102255724,0.34447739569939856,0.3518700155311094,0.3595221665233869,0.36743647264471185,0.37561503166484156,0.38405942426951595,0.3927707262595069,0.40174952361584204,0.41099593018899055,0.420509607748353,0.4302897881095469,0.4403352970410672,0.45064457963896803,0.4612157268483587,0.4720465028039735,0.483134372658781,0.4944765305697223,0.5060699275131767,0.5179112986096888,0.5299971896478546,0.542323982510918,0.5548879192266025,0.5676851243808517,0.5807116256592298,0.5939633723057764,0.6074362513176595,0.6211261012249479,0.6350287233379004,0.6491398903789621,0.663455352452927,0.6779708403459577,0.6926820661820938,0.7075847215038854,0.7226744728816568,0.737946955192887,0.7533977627490378,0.7690224384812545,0.7848164614282007,0.8007752327985311,0.8168940609064549,0.8331681453013831,0.8495925604309689,0.8661622391910043,0.8828719567249766,0.8997163148404413,0.9166897274086947,0.9337864071080116,0.9510003538593343,0.9683253452863376,0.985754929509604,1.0032824205572755,1.0209008966422328,1.03860320151892,1.056381949091778,1.0742295314023351,1.0921381300738071,1.110099731241288,1.1281061439427331,1.1461490218918557,1.1642198884993047,1.1823101649539165,1.200411201122247,1.2185143089725683,1.2366107981801668,1.254692013524358,1.2727493736454065,1.2907744106916865,1.3087588103549093,1.3266944517644024,1.3445734466908776,1.362388177496274,1.3801313332593141,1.3977959435067897,1.4153754089882329,1.4328635289468503,1.4502545243621434,1.46754305666932,1.4847242414977098,1.501793657013721,1.518747346504126,1.5355818148910716,1.5522940189316388,1.568881350920591,1.5853416157851912,1.6016730015343517,1.617874043100668,1.6339435796919144,1.6498807058478402,1.6656847164776338,1.6813550462324232,1.6968912036450021,1.7122927005444437,1.7122927005444437,1.7275589773261788,1.7426893247269488,1.7576828028187486,1.7725381579953656,1.7872537387785372,1.8018274113180015,1.816256475499555,1.8305375826075154,1.8446666555119684,1.8586388123664768,1.8724482948080636,1.8860884016479167,1.8995514290281215,1.9128286179964773,1.9259101104179812,1.9387849140979612,1.9514408779376493,1.9638646778789681,1.976041814320758,1.987956621605072,1.9995922900784047,2.01093090113093,2.021953475506053,2.0326400350549596,2.0429696779859774,2.052920667528548,2.0624705337963802,2.0715961884962577,2.0802740519882335,2.088480192061791,2.096190473651738,2.1033807185793196,2.1100268742693156,2.1161051902646903,2.1215924012381944,2.1264659150869147,2.1307040045925048,2.134286001038663,2.137192488099424,2.1394054942486695,2.1409086818940835,2.1416875314087824,2.1417295182218385,2.141024281135844,2.1395637800659597,2.137342441440876,2.134357289572006,2.1306080623826573,2.126097309993802,2.120830474786272,2.1148159517003857,2.1080651276914115,2.1080651276914115,2.100592399432022,2.0924151685389347,2.083553813798742,2.0740316400753573,2.063874803796272,2.0531122151349273,2.041775417229186,2.0298984429989178,2.0175176503464436,2.004671536739633,1.9914005343861512,1.9777467874064398,1.963753912600169,1.9494667455737678,1.934931074153518,1.9201933611473583,1.9053004586377171,1.8902993160858197,1.8752366846037452,1.8601588198036059,1.8451111856623026,1.8301381618457981,1.815282756918061,1.8005863298175115,1.7860883219180004,1.7718260019033414,1.7578342255745971,1.744145212579641,1.730788341905763,1.717789967810431,1.7051732576842333,1.6929580531457091,1.6811607554621373,1.669794236175623,1.658867773592337,1.6483870155665954,1.6383539687830806,1.628767014512095,1.6196209505865646,1.6109070591277053,1.6026131993310182,1.594723924417463,1.5872206216582547,1.5800816741973986,1.5732826432254388,1.56679646890238,1.560593688288542,1.5546426684203714,1.5489098525647569,1.5433600176008915,1.537956540413729,1.532661671137758,1.5274368110643886,1.5222427930205236,1.5170401620396436,1.5117894541794008,1.5064514713907478,1.500987550412201,1.4953598237478076,1.4895314708879803,1.4895314708879803,1.4834669580469277,1.4771322648179632,1.4704950962867847,1.4635250792914882,1.4561939416749623,1.4484756735387334,1.440346669675654,1.4317858525302534,1.4227747752085773,1.4132977042320323,1.4033416819007485,1.3928965682994854,1.3819550631417954,1.3705127078045833,1.3585678680540039,1.3461216981037158,1.3331780867768317,1.3197435866624208,1.3058273272654903,1.2914409132453715,1.2765983089207287,1.2613157102899273,1.2456114058728005,1.2295056277241108,1.2130203940002646,1.196179344479247,1.1790075704398602,1.1615314403004824,1.143778422400378,1.1257769062787326,1.1075560237688242,1.089145471177824,1.070575333767583,1.051875913689198,1.0330775624551511,1.0142105189582484,0.995304753967309,0.9763898219466097,0.9574947209601652,0.9386477613339449,0.9198764436598825,0.9012073466357277,0.8826660251451343,0.8642769188934702,0.8460632718273325,0.8280470624800705,0.8102489453023309,0.7926882029560597,0.7753827094729964,0.758348904104727,0.7416017756211011,0.7251548567475777,0.709020228369999,0.6932085330775971,0.6777289975619011,0.6625894633407614,0.6477964252330941,0.6333550769712318,0.6192693633041576,0.6055420379163606,0.592174726463804,0.5791679940105,0.5665214161365661,0.5542336529814581,0.5423025254842752,0.5307250930867365,0.5194977321735443,0.5086162145393538,0.4980757851913926,0.4878712388218152,0.4779969943139618,0.46844716668162845,0.45921563588005737,0.4502961119712455,0.4416821961741229,0.43336743738168726,0.42534538378195647,0.41760962927709167,0.4101538544547506,0.4029718619271261,0.3960576059155819,0.3894052160217629,0.3830090151888343,0.37686353191852145,0.37096350687018065,0.36530389402662145,0.35987985666716693,0.3546867584409203,0.34972014988177896,0.34497575075089854,0.34044942863157324,0.33613717423542677,0.3320350739070326,0.3281392798363268,0.32444597850419016,0.32095135789624485,0.31765157402314725,0.3145427172825004,0.3116207791880484,0.30888161997624525,0.30632093757886264,0.30393423842337064,0.30171681049078863,0.2996636990240384,0.29776968523907377,0.2960292683467857,0.29443665114651274,0.29298572940257606,0.29167008516427745,0.29048298413794094,0.2894173771675111,0.28846590582864584,0.28762091209079094,0.28687445195304523,0.28621831291329586,0.28564403508667513,0.2851429357493608,0.2847061370475216,0.28432459657919545,0.2839891405293479,0.2836904990155438,0.28341934328370416,0.28316632438041217,0.2829221129201554,0.2826774395627095,0.2824231358174011,0.2821501747970828,0.28184971155500405,0.2815131226520786,0.28113204461997315,0.28069841100655024,0.2802044877140864,0.2796429063668725,0.27900669547284407,0.27828930917328326,0.2774846534049206,0.2765871093294823,0.27559155391641255,0.27449337759474346,0.27328849891948503,0.27197337622611284,0.2705450162734125,0.2690009798998437,0.26733938474146945,0.2655589050801927,0.2636587689094196,0.26163875232025513,0.25949917132489975,0.2572408712450677,0.25486521380207194,0.2523740620517837,0.24976976331215506,0.2470551302335222,0.24423342016270644,0.24130831295120786,0.23828388735575667,0.23516459617642207,0.23195524027358347,0.2286609416006101,0.22528711538429144,0.2218394415801287,0.21832383572475617,0.21474641930315025,0.21111348974411684,0.20743149015388235,0.20370697889460804,0.1999465991123211,0.19615704831716738,0.19234504811803863,0.18851731421345932,0.1846805267411165,0.1808413010894498,0.17700615927620736,0.17318150200067292,0.1693735814782197,0.1655884751678136,0.161832060504848,0.15810999075312412,0.15442767209066693,0.15079024204423616,0.14720254938668278,0.1436691356095561,0.14019421808045548,0.13678167499040642,0.1334350321909648,0.13015745201370751,0.126951724156246,0.12382025870887406,0.12076508138445945,0.1177878310012764,0.11488975925420658,0.11207173279427067,0.1093342376198918,0.10667738576583598,0.10410092425760531,0.10160424628040052,0.09918640449284596,0.0968461263967452,0.09458183165544018,0.09239165123517844,0.09027344822647661,0.08822484018608971,0.0862432228250884,0.0843257948549497,0.08246958379170224,0.08067147250821824,0.07892822631690072,0.07723652035939796,0.07559296707671197,0.07399414353222544,0.07243661836179446,0.07091697812915414,0.06943185287141755,0.0679779406283709,0.06655203076045513,0.0651510258736602,0.06377196218486694,0.06241202817826185,0.06106858142210553]\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"name\":\"minimal\"\n",
       "}\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"BqLb3R\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();    \n",
       "   </script>"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "residualPlot(iris_dat, \"petal_length\", \"petal_width\", marginal=\"box:lb:.03,hist:t:.4,hist:r\", color=\"black\") + \n",
    "    ggmarginal(\"tr\", layer=geomArea(stat=Stat.density(), color=\"magenta\", fill=\"magenta\", alpha=.1)) + \n",
    "    themeMinimal()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e46a75bb",
   "metadata": {},
   "source": [
    "## Grouping"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "582464d7",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"LGo54c\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"mapping\":{\n",
       "\"x\":\"petal_length\",\n",
       "\"y\":\"residual\",\n",
       "\"color\":\"species\",\n",
       "\"fill\":\"species\"\n",
       "},\n",
       "\"data\":{\n",
       "\"species\":[\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\"],\n",
       "\"residual\":[-0.031887201735357834,-0.031887201735357834,-0.012960954446854578,-0.050813449023861035,-0.031887201735357834,0.11133405639913241,0.06811279826464214,-0.050813449023861035,-0.031887201735357834,-0.15081344902386104,-0.050813449023861035,-0.06973969631236437,-0.13188720173535784,-0.0751084598698481,0.005965292841648678,0.14918655097613898,0.18703904555314543,0.06811279826464214,0.011334056399132375,0.04918655097613894,-0.0886659436008676,0.14918655097613898,0.04381778741865516,0.2113340563991324,-0.12651843817787406,-0.06973969631236437,0.13026030368763564,-0.050813449023861035,-0.031887201735357834,-0.06973969631236437,-0.06973969631236437,0.14918655097613898,-0.15081344902386104,-0.031887201735357834,-0.15081344902386104,0.005965292841648678,-0.012960954446854578,-0.15081344902386104,-0.012960954446854578,-0.050813449023861035,0.0870390455531454,0.0870390455531454,-0.012960954446854578,0.3302603036876356,0.07348156182212595,0.06811279826464214,-0.06973969631236437,-0.031887201735357834,-0.050813449023861035,-0.031887201735357834,-0.071663585951941,0.09454713493530509,-0.03787430683918669,0.060073937153419577,0.0614417744916822,-0.10545286506469487,0.12833641404805918,-0.008188539741220024,-0.13855822550831776,0.19317929759704233,-0.07439926062846602,0.19386321626617375,-0.23992606284658047,-0.071663585951941,0.19249537892791113,0.027652495378927666,0.09454713493530509,-0.27303142329020336,0.09454713493530509,-0.10682070240295749,0.29523105360443647,0.060073937153419577,-0.03787430683918669,-0.27166358595194096,-0.03924214417744909,0.027652495378927666,-0.10476894639556367,0.1290203327171906,0.09454713493530509,-0.07439926062846602,-0.0737153419593346,-0.1406099815157118,-0.0068207024029576235,-0.0040850277264321555,0.09454713493530509,0.19454713493530518,0.02833641404805909,-0.0723475046210722,0.026968576709796688,0.060073937153419577,-0.1723475046210723,-0.03855822550831789,-0.03992606284658051,-0.008188539741220024,-0.006136783733826201,-0.10613678373382629,-0.006136783733826201,-0.03924214417744909,0.19112754158964862,0.026968576709796688,0.4021869639794171,-0.053545776157804426,0.01821665951972573,-0.23369425385934783,0.1342463550600348,-0.09399120926243532,-0.15736760291595187,-0.3459021226415089,-0.26575364493996534,0.38615726843910814,0.04645422384219566,-0.08560516723842193,0.08233544168096074,0.062483919382504416,0.4464542238421956,0.314394832761578,-0.2176645583190393,-0.010020904802743758,0.05791970411663794,-0.4375160806174956,0.25027605060034297,0.07851361492281317,-0.21002090480274394,-0.12148638507718679,0.050276050600343236,-0.29781303602058284,-0.10545668953687803,-0.12148638507718679,0.06630574614065221,-0.4657536449399653,-0.21384273156089195,-0.1619318181818179,0.1663057461406523,-0.45354577615780434,-0.633694253859348,0.18615726843910796,0.36630574614065203,-0.2176645583190393,-0.10545668953687803,0.09836513722126972,0.36630574614065203,0.3464542238421955,-0.053545776157804426,0.21821665951972546,0.45027605060034315,0.33042452830188673,-0.03751608061749567,0.03042452830188691,0.29836513722126945,-0.1535457761578043],\n",
       "\"petal_length\":[1.4,1.4,1.3,1.5,1.4,1.7,1.4,1.5,1.4,1.5,1.5,1.6,1.4,1.1,1.2,1.5,1.3,1.4,1.7,1.5,1.7,1.5,1.0,1.7,1.9,1.6,1.6,1.5,1.4,1.6,1.6,1.5,1.5,1.4,1.5,1.2,1.3,1.5,1.3,1.5,1.3,1.3,1.3,1.6,1.9,1.4,1.6,1.4,1.5,1.4,4.7,4.5,4.9,4.0,4.6,4.5,4.7,3.3,4.6,3.9,3.5,4.2,4.0,4.7,3.6,4.4,4.5,4.1,4.5,3.9,4.8,4.0,4.9,4.7,4.3,4.4,4.8,5.0,4.5,3.5,3.8,3.7,3.9,5.1,4.5,4.5,4.7,4.4,4.1,4.0,4.4,4.6,4.0,3.3,4.2,4.2,4.2,4.3,3.0,4.1,6.0,5.1,5.9,5.6,5.8,6.6,4.5,6.3,5.8,6.1,5.1,5.3,5.5,5.0,5.1,5.3,5.5,6.7,6.9,5.0,5.7,4.9,6.7,4.9,5.7,6.0,4.8,4.9,5.6,5.8,6.1,6.4,5.6,5.1,5.6,6.1,5.6,5.5,4.8,5.4,5.6,5.1,5.1,5.9,5.7,5.2,5.0,5.2,5.4,5.1]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"petal_width residual\"\n",
       "}],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"point\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"yintercept\":0.0,\n",
       "\"color\":\"#ff00ff\",\n",
       "\"linetype\":\"dashed\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"hline\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"density\",\n",
       "\"orientation\":\"y\",\n",
       "\"margin_side\":\"r\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"area\",\n",
       "\"data\":{\n",
       "\"species\":[\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"setosa\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"versicolor\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\",\"virginica\"],\n",
       "\"residual\":[-0.633694253859348,-0.6315729812478809,-0.6294517086364138,-0.6273304360249466,-0.6252091634134795,-0.6230878908020124,-0.6209666181905453,-0.6188453455790782,-0.6167240729676111,-0.614602800356144,-0.6124815277446769,-0.6103602551332098,-0.6082389825217427,-0.6061177099102756,-0.6039964372988085,-0.6018751646873414,-0.5997538920758743,-0.5976326194644072,-0.59551134685294,-0.5933900742414729,-0.5912688016300058,-0.5891475290185387,-0.5870262564070716,-0.5849049837956045,-0.5827837111841374,-0.5806624385726703,-0.5785411659612032,-0.5764198933497361,-0.574298620738269,-0.5721773481268019,-0.5700560755153348,-0.5679348029038677,-0.5658135302924006,-0.5636922576809335,-0.5615709850694663,-0.5594497124579992,-0.5573284398465321,-0.555207167235065,-0.5530858946235979,-0.5509646220121308,-0.5488433494006637,-0.5467220767891966,-0.5446008041777295,-0.5424795315662624,-0.5403582589547953,-0.5382369863433282,-0.5361157137318611,-0.533994441120394,-0.5318731685089269,-0.5297518958974597,-0.5276306232859926,-0.5255093506745255,-0.5233880780630584,-0.5212668054515913,-0.5191455328401242,-0.5170242602286571,-0.51490298761719,-0.512781715005723,-0.5106604423942558,-0.5085391697827888,-0.5064178971713216,-0.5042966245598546,-0.5021753519483874,-0.5000540793369204,-0.4979328067254532,-0.4958115341139861,-0.493690261502519,-0.4915689888910519,-0.4894477162795848,-0.48732644366811767,-0.48520517105665056,-0.48308389844518346,-0.48096262583371635,-0.47884135322224924,-0.47672008061078214,-0.47459880799931503,-0.4724775353878479,-0.4703562627763808,-0.4682349901649137,-0.4661137175534466,-0.4639924449419795,-0.46187117233051245,-0.45974989971904534,-0.45762862710757823,-0.4555073544961111,-0.453386081884644,-0.4512648092731769,-0.4491435366617098,-0.4470222640502427,-0.4449009914387756,-0.4427797188273085,-0.4406584462158414,-0.4385371736043743,-0.43641590099290717,-0.43429462838144006,-0.43217335576997296,-0.43005208315850585,-0.42793081054703874,-0.42580953793557164,-0.42368826532410453,-0.4215669927126374,-0.4194457201011703,-0.4173244474897032,-0.4152031748782361,-0.413081902266769,-0.4109606296553019,-0.4088393570438348,-0.4067180844323677,-0.40459681182090057,-0.40247553920943346,-0.40035426659796636,-0.39823299398649925,-0.39611172137503214,-0.39399044876356504,-0.39186917615209793,-0.3897479035406308,-0.3876266309291637,-0.3855053583176966,-0.3833840857062295,-0.3812628130947624,-0.3791415404832953,-0.3770202678718282,-0.3748989952603611,-0.37277772264889397,-0.37065645003742687,-0.36853517742595976,-0.36641390481449265,-0.36429263220302555,-0.36217135959155844,-0.36005008698009133,-0.3579288143686242,-0.3558075417571571,-0.35368626914569,-0.3515649965342229,-0.3494437239227558,-0.3473224513112887,-0.3452011786998216,-0.3430799060883545,-0.3409586334768874,-0.33883736086542027,-0.33671608825395316,-0.33459481564248605,-0.33247354303101895,-0.33035227041955184,-0.32823099780808473,-0.32610972519661763,-0.3239884525851505,-0.3218671799736834,-0.3197459073622163,-0.3176246347507492,-0.3155033621392821,-0.313382089527815,-0.3112608169163479,-0.3091395443048808,-0.30701827169341367,-0.30489699908194656,-0.30277572647047946,-0.30065445385901235,-0.29853318124754524,-0.29641190863607814,-0.29429063602461103,-0.292169363413144,-0.29004809080167687,-0.28792681819020977,-0.28580554557874266,-0.28368427296727555,-0.28156300035580845,-0.27944172774434134,-0.27732045513287423,-0.2751991825214071,-0.27307790990994,-0.2709566372984729,-0.2688353646870058,-0.2667140920755387,-0.2645928194640716,-0.2624715468526045,-0.2603502742411374,-0.2582290016296703,-0.25610772901820317,-0.25398645640673606,-0.25186518379526895,-0.24974391118380185,-0.24762263857233474,-0.24550136596086763,-0.24338009334940053,-0.24125882073793342,-0.23913754812646631,-0.2370162755149992,-0.2348950029035321,-0.232773730292065,-0.2306524576805979,-0.22853118506913078,-0.22640991245766368,-0.22428863984619657,-0.22216736723472946,-0.22004609462326236,-0.21792482201179525,-0.21580354940032814,-0.21368227678886104,-0.21156100417739393,-0.20943973156592682,-0.20731845895445972,-0.2051971863429926,-0.2030759137315255,-0.2009546411200584,-0.1988333685085913,-0.19671209589712418,-0.19459082328565708,-0.19246955067418997,-0.19034827806272286,-0.18822700545125576,-0.18610573283978865,-0.18398446022832154,-0.18186318761685444,-0.17974191500538733,-0.17762064239392023,-0.17549936978245312,-0.173378097170986,-0.1712568245595189,-0.1691355519480518,-0.1670142793365847,-0.16489300672511759,-0.16277173411365048,-0.16065046150218337,-0.15852918889071632,-0.15640791627924922,-0.1542866436677821,-0.152165371056315,-0.1500440984448479,-0.1479228258333808,-0.14580155322191368,-0.14368028061044658,-0.14155900799897947,-0.13943773538751236,-0.13731646277604526,-0.13519519016457815,-0.13307391755311104,-0.13095264494164394,-0.12883137233017683,-0.12671009971870972,-0.12458882710724262,-0.12246755449577551,-0.1203462818843084,-0.1182250092728413,-0.11610373666137419,-0.11398246404990708,-0.11186119143843998,-0.10973991882697287,-0.10761864621550576,-0.10549737360403866,-0.10337610099257155,-0.10125482838110444,-0.09913355576963734,-0.09701228315817023,-0.09489101054670313,-0.09276973793523602,-0.09064846532376891,-0.0885271927123018,-0.0864059201008347,-0.08428464748936759,-0.08216337487790049,-0.08004210226643338,-0.07792082965496627,-0.07579955704349917,-0.07579955704349917,-0.07367828443203206,-0.07155701182056495,-0.06943573920909785,-0.06731446659763074,-0.06519319398616363,-0.06307192137469653,-0.06095064876322942,-0.058829376151762314,-0.05670810354029521,-0.0545868309288281,-0.052465558317360994,-0.05034428570589389,-0.04822301309442678,-0.046101740482959674,-0.04398046787149257,-0.04185919526002546,-0.039737922648558355,-0.03761665003709125,-0.03549537742562414,-0.033374104814157035,-0.03125283220268993,-0.029131559591222822,-0.027010286979755715,-0.02488901436828861,-0.022767741756821502,-0.020646469145354396,-0.020646469145354396,-0.01852519653388729,-0.016403923922420183,-0.014282651310953076,-0.01216137869948597,-0.010040106088018863,-0.007918833476551757,-0.00579756086508465,-0.0036762882536175434,-0.0015550156421504369,5.662569693166697E-4,0.0026875295807837762,0.004808802192250883,0.006930074803717989,0.009051347415185096,0.011172620026652202,0.013293892638119309,0.015415165249586416,0.017536437861053522,0.01965771047252063,0.021778983083987735,0.023900255695454842,0.02602152830692195,0.028142800918389055,0.03026407352985616,0.03238534614132327,0.034506618752790374,0.03662789136425748,0.03874916397572459,0.040870436587191694,0.0429917091986588,0.04511298181012591,0.0472342544215929,0.04935552703306001,0.051476799644527116,0.05359807225599422,0.05571934486746133,0.057840617478928436,0.05996189009039554,0.06208316270186265,0.06208316270186265,0.06420443531332976,0.06632570792479686,0.06844698053626397,0.07056825314773107,0.07268952575919818,0.07481079837066529,0.0769320709821324,0.0790533435935995,0.08117461620506661,0.08329588881653371,0.08541716142800082,0.08753843403946793,0.08965970665093503,0.09178097926240214,0.09390225187386925,0.09602352448533635,0.09814479709680346,0.10026606970827057,0.10238734231973767,0.10450861493120478,0.10662988754267189,0.10875116015413899,0.1108724327656061,0.1129937053770732,0.11511497798854031,0.11723625060000742,0.11935752321147453,0.12147879582294163,0.12360006843440874,0.12572134104587585,0.12784261365734295,0.12996388626881006,0.13208515888027716,0.13420643149174427,0.13632770410321138,0.13844897671467848,0.1405702493261456,0.1426915219376127,0.1448127945490798,0.1469340671605469,0.14905533977201402,0.15117661238348112,0.15329788499494823,0.15541915760641534,0.15754043021788244,0.15966170282934955,0.16178297544081666,0.16390424805228376,0.16602552066375087,0.16814679327521798,0.17026806588668508,0.1723893384981522,0.1745106111096193,0.1766318837210864,0.1787531563325535,0.18087442894402062,0.18299570155548772,0.18511697416695483,0.18723824677842194,0.18935951938988904,0.19148079200135615,0.19360206461282325,0.19572333722429036,0.19784460983575747,0.19996588244722457,0.20208715505869168,0.2042084276701588,0.2063297002816259,0.208450972893093,0.2105722455045601,0.2126935181160272,0.21481479072749432,0.21693606333896143,0.21905733595042853,0.22117860856189564,0.22329988117336275,0.22542115378482985,0.22754242639629696,0.22966369900776407,0.23178497161923117,0.23390624423069828,0.23602751684216539,0.2381487894536325,0.2402700620650996,0.2423913346765667,0.2445126072880338,0.24663387989950092,0.24875515251096803,0.25087642512243513,0.25299769773390224,0.25511897034536934,0.25724024295683645,0.25936151556830356,0.26148278817977066,0.26360406079123777,0.2657253334027049,0.267846606014172,0.2699678786256391,0.2720891512371062,0.2742104238485733,0.2763316964600404,0.2784529690715075,0.2805742416829746,0.28269551429444173,0.28481678690590884,0.28693805951737594,0.28905933212884305,0.29118060474031016,0.29330187735177726,0.29542314996324437,0.2975444225747115,0.2996656951861786,0.3017869677976457,0.3039082404091128,0.3060295130205799,0.308150785632047,0.3102720582435141,0.3123933308549812,0.31451460346644833,0.3166358760779153,0.31875714868938243,0.32087842130084954,0.32299969391231664,0.32512096652378375,0.32724223913525086,0.32936351174671796,0.33148478435818507,0.3336060569696522,0.3357273295811193,0.3378486021925864,0.3399698748040535,0.3420911474155206,0.3442124200269877,0.3463336926384548,0.3484549652499219,0.35057623786138903,0.35269751047285613,0.35481878308432324,0.35694005569579035,0.35906132830725745,0.36118260091872456,0.36330387353019167,0.3654251461416588,0.3675464187531259,0.3696676913645931,0.3717889639760601,0.3739102365875273,0.3760315091989943,0.3781527818104615,0.3802740544219285,0.38239532703339574,0.38451659964486273,0.38663787225632995,0.38875914486779695,0.39088041747926416,0.39300169009073116,0.3951229627021984,0.3972442353136654,0.3993655079251326,0.4014867805365996,0.4036080531480668,0.4057293257595338,0.407850598371001,0.409971870982468,0.41209314359393523,0.4142144162054022,0.41633568881686944,0.41845696142833644,0.42057823403980366,0.42269950665127065,0.42482077926273787,0.42694205187420486,0.4290633244856721,0.4311845970971391,0.4333058697086063,0.4354271423200733,0.4375484149315405,0.4396696875430075,0.4417909601544747,0.4439122327659417,0.44603350537740893,0.44815477798887593,0.45027605060034315,-0.633694253859348,-0.6315729812478809,-0.6294517086364138,-0.6273304360249466,-0.6252091634134795,-0.6230878908020124,-0.6209666181905453,-0.6188453455790782,-0.6167240729676111,-0.614602800356144,-0.6124815277446769,-0.6103602551332098,-0.6082389825217427,-0.6061177099102756,-0.6039964372988085,-0.6018751646873414,-0.5997538920758743,-0.5976326194644072,-0.59551134685294,-0.5933900742414729,-0.5912688016300058,-0.5891475290185387,-0.5870262564070716,-0.5849049837956045,-0.5827837111841374,-0.5806624385726703,-0.5785411659612032,-0.5764198933497361,-0.574298620738269,-0.5721773481268019,-0.5700560755153348,-0.5679348029038677,-0.5658135302924006,-0.5636922576809335,-0.5615709850694663,-0.5594497124579992,-0.5573284398465321,-0.555207167235065,-0.5530858946235979,-0.5509646220121308,-0.5488433494006637,-0.5467220767891966,-0.5446008041777295,-0.5424795315662624,-0.5403582589547953,-0.5382369863433282,-0.5361157137318611,-0.533994441120394,-0.5318731685089269,-0.5297518958974597,-0.5276306232859926,-0.5255093506745255,-0.5233880780630584,-0.5212668054515913,-0.5191455328401242,-0.5170242602286571,-0.51490298761719,-0.512781715005723,-0.5106604423942558,-0.5085391697827888,-0.5064178971713216,-0.5042966245598546,-0.5021753519483874,-0.5000540793369204,-0.4979328067254532,-0.4958115341139861,-0.493690261502519,-0.4915689888910519,-0.4894477162795848,-0.48732644366811767,-0.48520517105665056,-0.48308389844518346,-0.48096262583371635,-0.47884135322224924,-0.47672008061078214,-0.47459880799931503,-0.4724775353878479,-0.4703562627763808,-0.4682349901649137,-0.4661137175534466,-0.4639924449419795,-0.46187117233051245,-0.45974989971904534,-0.45762862710757823,-0.4555073544961111,-0.453386081884644,-0.4512648092731769,-0.4491435366617098,-0.4470222640502427,-0.4449009914387756,-0.4427797188273085,-0.4406584462158414,-0.4385371736043743,-0.43641590099290717,-0.43429462838144006,-0.43217335576997296,-0.43005208315850585,-0.42793081054703874,-0.42580953793557164,-0.42368826532410453,-0.4215669927126374,-0.4194457201011703,-0.4173244474897032,-0.4152031748782361,-0.413081902266769,-0.4109606296553019,-0.4088393570438348,-0.4067180844323677,-0.40459681182090057,-0.40247553920943346,-0.40035426659796636,-0.39823299398649925,-0.39611172137503214,-0.39399044876356504,-0.39186917615209793,-0.3897479035406308,-0.3876266309291637,-0.3855053583176966,-0.3833840857062295,-0.3812628130947624,-0.3791415404832953,-0.3770202678718282,-0.3748989952603611,-0.37277772264889397,-0.37065645003742687,-0.36853517742595976,-0.36641390481449265,-0.36429263220302555,-0.36217135959155844,-0.36005008698009133,-0.3579288143686242,-0.3558075417571571,-0.35368626914569,-0.3515649965342229,-0.3494437239227558,-0.3473224513112887,-0.3452011786998216,-0.3430799060883545,-0.3409586334768874,-0.33883736086542027,-0.33671608825395316,-0.33459481564248605,-0.33247354303101895,-0.33035227041955184,-0.32823099780808473,-0.32610972519661763,-0.3239884525851505,-0.3218671799736834,-0.3197459073622163,-0.3176246347507492,-0.3155033621392821,-0.313382089527815,-0.3112608169163479,-0.3091395443048808,-0.30701827169341367,-0.30489699908194656,-0.30277572647047946,-0.30065445385901235,-0.29853318124754524,-0.29641190863607814,-0.29429063602461103,-0.292169363413144,-0.29004809080167687,-0.28792681819020977,-0.28580554557874266,-0.28368427296727555,-0.28156300035580845,-0.27944172774434134,-0.27732045513287423,-0.2751991825214071,-0.27307790990994,-0.2709566372984729,-0.2688353646870058,-0.2667140920755387,-0.2645928194640716,-0.2624715468526045,-0.2603502742411374,-0.2582290016296703,-0.25610772901820317,-0.25398645640673606,-0.25186518379526895,-0.24974391118380185,-0.24762263857233474,-0.24550136596086763,-0.24338009334940053,-0.24125882073793342,-0.23913754812646631,-0.2370162755149992,-0.2348950029035321,-0.232773730292065,-0.2306524576805979,-0.22853118506913078,-0.22640991245766368,-0.22428863984619657,-0.22216736723472946,-0.22004609462326236,-0.21792482201179525,-0.21580354940032814,-0.21368227678886104,-0.21156100417739393,-0.20943973156592682,-0.20731845895445972,-0.2051971863429926,-0.2030759137315255,-0.2009546411200584,-0.1988333685085913,-0.19671209589712418,-0.19459082328565708,-0.19246955067418997,-0.19034827806272286,-0.18822700545125576,-0.18610573283978865,-0.18398446022832154,-0.18186318761685444,-0.17974191500538733,-0.17762064239392023,-0.17549936978245312,-0.173378097170986,-0.1712568245595189,-0.1691355519480518,-0.1670142793365847,-0.16489300672511759,-0.16277173411365048,-0.16065046150218337,-0.15852918889071632,-0.15640791627924922,-0.1542866436677821,-0.152165371056315,-0.1500440984448479,-0.1479228258333808,-0.14580155322191368,-0.14368028061044658,-0.14155900799897947,-0.13943773538751236,-0.13731646277604526,-0.13519519016457815,-0.13307391755311104,-0.13095264494164394,-0.12883137233017683,-0.12671009971870972,-0.12458882710724262,-0.12246755449577551,-0.1203462818843084,-0.1182250092728413,-0.11610373666137419,-0.11398246404990708,-0.11186119143843998,-0.10973991882697287,-0.10761864621550576,-0.10549737360403866,-0.10337610099257155,-0.10125482838110444,-0.09913355576963734,-0.09701228315817023,-0.09489101054670313,-0.09276973793523602,-0.09064846532376891,-0.0885271927123018,-0.0864059201008347,-0.08428464748936759,-0.08428464748936759,-0.08216337487790049,-0.08004210226643338,-0.07792082965496627,-0.07579955704349917,-0.07367828443203206,-0.07155701182056495,-0.06943573920909785,-0.06731446659763074,-0.06519319398616363,-0.06307192137469653,-0.06095064876322942,-0.058829376151762314,-0.05670810354029521,-0.0545868309288281,-0.052465558317360994,-0.05034428570589389,-0.04822301309442678,-0.046101740482959674,-0.04398046787149257,-0.04185919526002546,-0.039737922648558355,-0.03761665003709125,-0.03549537742562414,-0.033374104814157035,-0.03125283220268993,-0.029131559591222822,-0.027010286979755715,-0.02488901436828861,-0.022767741756821502,-0.020646469145354396,-0.01852519653388729,-0.016403923922420183,-0.014282651310953076,-0.01216137869948597,-0.010040106088018863,-0.007918833476551757,-0.00579756086508465,-0.00579756086508465,-0.0036762882536175434,-0.0015550156421504369,5.662569693166697E-4,0.0026875295807837762,0.004808802192250883,0.006930074803717989,0.009051347415185096,0.011172620026652202,0.013293892638119309,0.015415165249586416,0.017536437861053522,0.01965771047252063,0.021778983083987735,0.023900255695454842,0.02602152830692195,0.028142800918389055,0.03026407352985616,0.03238534614132327,0.034506618752790374,0.03662789136425748,0.03874916397572459,0.040870436587191694,0.0429917091986588,0.04511298181012591,0.0472342544215929,0.04935552703306001,0.051476799644527116,0.05359807225599422,0.05571934486746133,0.057840617478928436,0.05996189009039554,0.06208316270186265,0.06420443531332976,0.06632570792479686,0.06844698053626397,0.07056825314773107,0.07268952575919818,0.07481079837066529,0.0769320709821324,0.0790533435935995,0.08117461620506661,0.08117461620506661,0.08329588881653371,0.08541716142800082,0.08753843403946793,0.08965970665093503,0.09178097926240214,0.09390225187386925,0.09602352448533635,0.09814479709680346,0.10026606970827057,0.10238734231973767,0.10450861493120478,0.10662988754267189,0.10875116015413899,0.1108724327656061,0.1129937053770732,0.11511497798854031,0.11723625060000742,0.11935752321147453,0.12147879582294163,0.12360006843440874,0.12572134104587585,0.12784261365734295,0.12996388626881006,0.13208515888027716,0.13420643149174427,0.13632770410321138,0.13844897671467848,0.1405702493261456,0.1426915219376127,0.1448127945490798,0.1469340671605469,0.14905533977201402,0.15117661238348112,0.15329788499494823,0.15541915760641534,0.15754043021788244,0.15966170282934955,0.16178297544081666,0.16390424805228376,0.16602552066375087,0.16814679327521798,0.17026806588668508,0.1723893384981522,0.1745106111096193,0.1766318837210864,0.1787531563325535,0.18087442894402062,0.18299570155548772,0.18511697416695483,0.18723824677842194,0.18935951938988904,0.19148079200135615,0.19360206461282325,0.19572333722429036,0.19784460983575747,0.19996588244722457,0.20208715505869168,0.2042084276701588,0.2063297002816259,0.208450972893093,0.2105722455045601,0.2126935181160272,0.21481479072749432,0.21693606333896143,0.21905733595042853,0.22117860856189564,0.22329988117336275,0.22542115378482985,0.22754242639629696,0.22966369900776407,0.23178497161923117,0.23390624423069828,0.23602751684216539,0.2381487894536325,0.2402700620650996,0.2423913346765667,0.2445126072880338,0.24663387989950092,0.24875515251096803,0.25087642512243513,0.25299769773390224,0.25511897034536934,0.25724024295683645,0.25936151556830356,0.26148278817977066,0.26360406079123777,0.2657253334027049,0.267846606014172,0.2699678786256391,0.2720891512371062,0.2742104238485733,0.2763316964600404,0.2784529690715075,0.2805742416829746,0.28269551429444173,0.28481678690590884,0.28693805951737594,0.28905933212884305,0.29118060474031016,0.29330187735177726,0.29542314996324437,0.2975444225747115,0.2996656951861786,0.3017869677976457,0.3039082404091128,0.3060295130205799,0.308150785632047,0.3102720582435141,0.3123933308549812,0.31451460346644833,0.3166358760779153,0.31875714868938243,0.32087842130084954,0.32299969391231664,0.32512096652378375,0.32724223913525086,0.32936351174671796,0.33148478435818507,0.3336060569696522,0.3357273295811193,0.3378486021925864,0.3399698748040535,0.3420911474155206,0.3442124200269877,0.3463336926384548,0.3484549652499219,0.35057623786138903,0.35269751047285613,0.35481878308432324,0.35694005569579035,0.35906132830725745,0.36118260091872456,0.36330387353019167,0.3654251461416588,0.3675464187531259,0.3696676913645931,0.3717889639760601,0.3739102365875273,0.3760315091989943,0.3781527818104615,0.3802740544219285,0.38239532703339574,0.38451659964486273,0.38663787225632995,0.38875914486779695,0.39088041747926416,0.39300169009073116,0.3951229627021984,0.3972442353136654,0.3993655079251326,0.4014867805365996,0.4036080531480668,0.4057293257595338,0.407850598371001,0.409971870982468,0.41209314359393523,0.4142144162054022,0.41633568881686944,0.41845696142833644,0.42057823403980366,0.42269950665127065,0.42482077926273787,0.42694205187420486,0.4290633244856721,0.4311845970971391,0.4333058697086063,0.4354271423200733,0.4375484149315405,0.4396696875430075,0.4417909601544747,0.4439122327659417,0.44603350537740893,0.44815477798887593,0.45027605060034315,-0.633694253859348,-0.6315729812478809,-0.6294517086364138,-0.6273304360249466,-0.6252091634134795,-0.6230878908020124,-0.6209666181905453,-0.6188453455790782,-0.6167240729676111,-0.614602800356144,-0.6124815277446769,-0.6103602551332098,-0.6082389825217427,-0.6061177099102756,-0.6039964372988085,-0.6018751646873414,-0.5997538920758743,-0.5976326194644072,-0.59551134685294,-0.5933900742414729,-0.5912688016300058,-0.5891475290185387,-0.5870262564070716,-0.5849049837956045,-0.5827837111841374,-0.5806624385726703,-0.5785411659612032,-0.5764198933497361,-0.574298620738269,-0.5721773481268019,-0.5700560755153348,-0.5679348029038677,-0.5658135302924006,-0.5636922576809335,-0.5615709850694663,-0.5594497124579992,-0.5573284398465321,-0.555207167235065,-0.5530858946235979,-0.5509646220121308,-0.5488433494006637,-0.5467220767891966,-0.5446008041777295,-0.5424795315662624,-0.5403582589547953,-0.5382369863433282,-0.5361157137318611,-0.533994441120394,-0.5318731685089269,-0.5297518958974597,-0.5276306232859926,-0.5255093506745255,-0.5233880780630584,-0.5212668054515913,-0.5191455328401242,-0.5170242602286571,-0.51490298761719,-0.512781715005723,-0.5106604423942558,-0.5085391697827888,-0.5064178971713216,-0.5042966245598546,-0.5021753519483874,-0.5000540793369204,-0.4979328067254532,-0.4958115341139861,-0.493690261502519,-0.4915689888910519,-0.4894477162795848,-0.48732644366811767,-0.48520517105665056,-0.48308389844518346,-0.48096262583371635,-0.47884135322224924,-0.47672008061078214,-0.47459880799931503,-0.4724775353878479,-0.4703562627763808,-0.4682349901649137,-0.4661137175534466,-0.4639924449419795,-0.46187117233051245,-0.45974989971904534,-0.45762862710757823,-0.4555073544961111,-0.453386081884644,-0.4512648092731769,-0.4491435366617098,-0.4470222640502427,-0.4449009914387756,-0.4427797188273085,-0.4406584462158414,-0.4385371736043743,-0.43641590099290717,-0.43429462838144006,-0.43217335576997296,-0.43005208315850585,-0.42793081054703874,-0.42580953793557164,-0.42368826532410453,-0.4215669927126374,-0.4194457201011703,-0.4173244474897032,-0.4152031748782361,-0.413081902266769,-0.4109606296553019,-0.4088393570438348,-0.4067180844323677,-0.40459681182090057,-0.40247553920943346,-0.40035426659796636,-0.39823299398649925,-0.39611172137503214,-0.39399044876356504,-0.39186917615209793,-0.3897479035406308,-0.3876266309291637,-0.3855053583176966,-0.3833840857062295,-0.3812628130947624,-0.3791415404832953,-0.3770202678718282,-0.3748989952603611,-0.37277772264889397,-0.37065645003742687,-0.36853517742595976,-0.36641390481449265,-0.36429263220302555,-0.36217135959155844,-0.36005008698009133,-0.3579288143686242,-0.3558075417571571,-0.35368626914569,-0.3515649965342229,-0.3494437239227558,-0.3473224513112887,-0.3452011786998216,-0.3430799060883545,-0.3409586334768874,-0.33883736086542027,-0.33671608825395316,-0.33459481564248605,-0.33247354303101895,-0.33035227041955184,-0.32823099780808473,-0.32610972519661763,-0.3239884525851505,-0.3218671799736834,-0.3197459073622163,-0.3176246347507492,-0.3155033621392821,-0.313382089527815,-0.3112608169163479,-0.3091395443048808,-0.30701827169341367,-0.30489699908194656,-0.30277572647047946,-0.30065445385901235,-0.29853318124754524,-0.29641190863607814,-0.29429063602461103,-0.292169363413144,-0.29004809080167687,-0.28792681819020977,-0.28580554557874266,-0.28368427296727555,-0.28156300035580845,-0.27944172774434134,-0.27732045513287423,-0.2751991825214071,-0.27307790990994,-0.2709566372984729,-0.2688353646870058,-0.2667140920755387,-0.2645928194640716,-0.2624715468526045,-0.2603502742411374,-0.2582290016296703,-0.25610772901820317,-0.25398645640673606,-0.25186518379526895,-0.24974391118380185,-0.24762263857233474,-0.24550136596086763,-0.24338009334940053,-0.24125882073793342,-0.23913754812646631,-0.2370162755149992,-0.2348950029035321,-0.232773730292065,-0.2306524576805979,-0.22853118506913078,-0.22640991245766368,-0.22428863984619657,-0.22216736723472946,-0.22004609462326236,-0.21792482201179525,-0.21580354940032814,-0.21368227678886104,-0.21156100417739393,-0.20943973156592682,-0.20731845895445972,-0.2051971863429926,-0.2030759137315255,-0.2009546411200584,-0.1988333685085913,-0.19671209589712418,-0.19459082328565708,-0.19246955067418997,-0.19246955067418997,-0.19034827806272286,-0.18822700545125576,-0.18610573283978865,-0.18398446022832154,-0.18186318761685444,-0.17974191500538733,-0.17762064239392023,-0.17549936978245312,-0.173378097170986,-0.1712568245595189,-0.1691355519480518,-0.1670142793365847,-0.16489300672511759,-0.16277173411365048,-0.16065046150218337,-0.15852918889071632,-0.15640791627924922,-0.1542866436677821,-0.152165371056315,-0.1500440984448479,-0.1479228258333808,-0.14580155322191368,-0.14368028061044658,-0.14155900799897947,-0.13943773538751236,-0.13731646277604526,-0.13519519016457815,-0.13307391755311104,-0.13095264494164394,-0.12883137233017683,-0.12671009971870972,-0.12458882710724262,-0.12246755449577551,-0.1203462818843084,-0.1182250092728413,-0.11610373666137419,-0.11398246404990708,-0.11186119143843998,-0.10973991882697287,-0.10761864621550576,-0.10549737360403866,-0.10337610099257155,-0.10125482838110444,-0.09913355576963734,-0.09701228315817023,-0.09489101054670313,-0.09276973793523602,-0.09064846532376891,-0.0885271927123018,-0.0864059201008347,-0.08428464748936759,-0.08216337487790049,-0.08004210226643338,-0.07792082965496627,-0.07579955704349917,-0.07367828443203206,-0.07155701182056495,-0.06943573920909785,-0.06731446659763074,-0.06519319398616363,-0.06307192137469653,-0.06095064876322942,-0.058829376151762314,-0.05670810354029521,-0.0545868309288281,-0.052465558317360994,-0.05034428570589389,-0.04822301309442678,-0.046101740482959674,-0.04398046787149257,-0.04185919526002546,-0.039737922648558355,-0.03761665003709125,-0.03549537742562414,-0.033374104814157035,-0.03125283220268993,-0.029131559591222822,-0.027010286979755715,-0.02488901436828861,-0.022767741756821502,-0.020646469145354396,-0.020646469145354396,-0.01852519653388729,-0.016403923922420183,-0.014282651310953076,-0.01216137869948597,-0.010040106088018863,-0.007918833476551757,-0.00579756086508465,-0.0036762882536175434,-0.0015550156421504369,5.662569693166697E-4,0.0026875295807837762,0.004808802192250883,0.006930074803717989,0.009051347415185096,0.011172620026652202,0.013293892638119309,0.015415165249586416,0.017536437861053522,0.01965771047252063,0.021778983083987735,0.023900255695454842,0.02602152830692195,0.028142800918389055,0.03026407352985616,0.03238534614132327,0.034506618752790374,0.03662789136425748,0.03874916397572459,0.040870436587191694,0.0429917091986588,0.04511298181012591,0.0472342544215929,0.04935552703306001,0.051476799644527116,0.05359807225599422,0.05571934486746133,0.057840617478928436,0.05996189009039554,0.06208316270186265,0.06420443531332976,0.06632570792479686,0.06844698053626397,0.07056825314773107,0.07268952575919818,0.07481079837066529,0.0769320709821324,0.0790533435935995,0.08117461620506661,0.08329588881653371,0.08541716142800082,0.08753843403946793,0.08965970665093503,0.09178097926240214,0.09390225187386925,0.09602352448533635,0.09814479709680346,0.10026606970827057,0.10238734231973767,0.10450861493120478,0.10662988754267189,0.10875116015413899,0.1108724327656061,0.1129937053770732,0.11511497798854031,0.11723625060000742,0.11935752321147453,0.12147879582294163,0.12360006843440874,0.12572134104587585,0.12784261365734295,0.12996388626881006,0.13208515888027716,0.13420643149174427,0.13632770410321138,0.13844897671467848,0.1405702493261456,0.1426915219376127,0.1448127945490798,0.1469340671605469,0.14905533977201402,0.15117661238348112,0.15329788499494823,0.15541915760641534,0.15754043021788244,0.15966170282934955,0.16178297544081666,0.16390424805228376,0.16602552066375087,0.16602552066375087,0.16814679327521798,0.17026806588668508,0.1723893384981522,0.1745106111096193,0.1766318837210864,0.1787531563325535,0.18087442894402062,0.18299570155548772,0.18511697416695483,0.18723824677842194,0.18935951938988904,0.19148079200135615,0.19360206461282325,0.19572333722429036,0.19784460983575747,0.19996588244722457,0.20208715505869168,0.2042084276701588,0.2063297002816259,0.208450972893093,0.2105722455045601,0.2126935181160272,0.21481479072749432,0.21693606333896143,0.21905733595042853,0.22117860856189564,0.22329988117336275,0.22542115378482985,0.22754242639629696,0.22966369900776407,0.23178497161923117,0.23390624423069828,0.23602751684216539,0.2381487894536325,0.2402700620650996,0.2423913346765667,0.2445126072880338,0.24663387989950092,0.24875515251096803,0.25087642512243513,0.25299769773390224,0.25511897034536934,0.25724024295683645,0.25936151556830356,0.26148278817977066,0.26360406079123777,0.2657253334027049,0.267846606014172,0.2699678786256391,0.2720891512371062,0.2742104238485733,0.2763316964600404,0.2784529690715075,0.2805742416829746,0.28269551429444173,0.28481678690590884,0.28693805951737594,0.28905933212884305,0.29118060474031016,0.29330187735177726,0.29542314996324437,0.2975444225747115,0.2996656951861786,0.3017869677976457,0.3039082404091128,0.3060295130205799,0.308150785632047,0.3102720582435141,0.3123933308549812,0.31451460346644833,0.3166358760779153,0.31875714868938243,0.32087842130084954,0.32299969391231664,0.32512096652378375,0.32724223913525086,0.32936351174671796,0.33148478435818507,0.3336060569696522,0.3357273295811193,0.3378486021925864,0.3399698748040535,0.3420911474155206,0.3442124200269877,0.3463336926384548,0.3484549652499219,0.35057623786138903,0.35269751047285613,0.35481878308432324,0.35694005569579035,0.35906132830725745,0.36118260091872456,0.36330387353019167,0.3654251461416588,0.3675464187531259,0.3696676913645931,0.3717889639760601,0.3739102365875273,0.3760315091989943,0.3781527818104615,0.3802740544219285,0.38239532703339574,0.38451659964486273,0.38663787225632995,0.38875914486779695,0.39088041747926416,0.39300169009073116,0.3951229627021984,0.3972442353136654,0.3993655079251326,0.4014867805365996,0.4036080531480668,0.4057293257595338,0.407850598371001,0.409971870982468,0.41209314359393523,0.4142144162054022,0.41633568881686944,0.41845696142833644,0.42057823403980366,0.42269950665127065,0.42482077926273787,0.42694205187420486,0.4290633244856721,0.4311845970971391,0.4333058697086063,0.4354271423200733,0.4375484149315405,0.4396696875430075,0.4417909601544747,0.4439122327659417,0.44603350537740893,0.44815477798887593,0.45027605060034315],\n",
       "\"petal_length\":[2.2290917813797303E-33,4.301106266685836E-33,8.275151121532052E-33,1.5875055052634102E-32,3.0366734946003265E-32,5.791946169029888E-32,1.1015253632266868E-31,2.0888538749425565E-31,3.949709917010342E-31,7.446735530435612E-31,1.3999426914347702E-30,2.6242076117852823E-30,4.904895268509988E-30,9.141235750878479E-30,1.6987274809855705E-29,3.147647983963519E-29,5.815569536661604E-29,1.0713762369482039E-28,1.9680468695802962E-28,3.6047283815762473E-28,6.583447048511559E-28,1.1988858949583555E-27,2.1769380424996986E-27,3.9414680713103646E-27,7.115635523755974E-27,1.2808938086349106E-26,2.299091844827086E-26,4.114748457411274E-26,7.34300882607318E-26,1.3066179256559724E-25,2.3182858831498278E-25,4.1013723626312408E-25,7.234945378901014E-25,1.272580236955184E-24,2.2319217758487524E-24,3.903162728307644E-24,6.806098919371667E-24,1.1833787953667057E-23,2.051602663594515E-23,3.5465549131359777E-23,6.113136663773785E-23,1.050668040898003E-22,1.800573939647928E-22,3.076808305484692E-22,5.242446175303872E-22,8.906592950065482E-22,1.5088057638283001E-21,2.5485854095862556E-21,4.29248910998981E-21,7.208806812859267E-21,1.2071514835472804E-20,2.015600156574269E-20,3.355762728521763E-20,5.570861835437331E-20,9.221420685154101E-20,1.5220103912573604E-19,2.504850230779578E-19,4.110458842603503E-19,6.725789474087926E-19,1.0973386881481523E-18,1.7851824243264947E-18,2.8958031541715808E-18,4.683818190061963E-18,7.55397623550647E-18,1.214774954798541E-17,1.947873333609244E-17,3.114370672826571E-17,4.9650615439416E-17,7.892666606087612E-17,1.2510299570190162E-16,1.977227003447436E-16,3.1159485198325333E-16,4.896310801019805E-16,7.671719073661295E-16,1.198564647013065E-15,1.86713338463072E-15,2.9002429830392884E-15,4.491988519817977E-15,6.937262967130955E-15,1.068274839200186E-14,1.6402997624543367E-14,2.5113594834703108E-14,3.833893498979974E-14,5.836019951476115E-14,8.85807020250078E-14,1.3406245261768177E-13,2.0231168323759792E-13,3.0442519785471486E-13,4.567579686723737E-13,6.833412614790565E-13,1.0193778899821665E-12,1.5162782480291724E-12,2.2488930950064677E-12,3.3258680185905716E-12,4.904419266927856E-12,7.211351009867226E-12,1.057285404553662E-11,1.5456618498732708E-11,2.253115643118344E-11,3.274909628569656E-11,4.7463755731821E-11,6.859175690033636E-11,9.883912833679924E-11,1.420146504091136E-10,2.0346268281982654E-10,2.9065906729373247E-10,4.140288409994399E-10,5.880646140284624E-10,8.328510899374831E-10,1.1761363116645764E-9,1.6561363159441856E-9,2.325320186503512E-9,3.2555010767545267E-9,4.544660756216999E-9,6.326067060436457E-9,8.78041333354093E-9,1.2151926538514543E-8,1.6769668524882168E-8,2.3075608173886304E-8,3.166148935761967E-8,4.331708342963714E-8,5.9093122602542735E-8,8.038309485355854E-8,1.0902918108191287E-7,1.474589775589172E-7,1.9886132596690617E-7,2.674116334971709E-7,3.5855958083179913E-7,4.793951718714678E-7,6.391127733832203E-7,8.495972356856082E-7,1.1261615005866777E-6,1.4884714267590117E-6,1.9617010450005418E-6,2.577970257387233E-6,3.378127285780539E-6,4.413950133753191E-6,5.750855131443971E-6,7.47121646170788E-6,9.678418584390678E-6,1.2501783830403466E-5,1.6102540244802354E-5,2.0681020090879986E-5,2.6485307298776047E-5,3.3821582488835534E-5,4.306644686158942E-5,5.468154094378982E-5,6.923081049213058E-5,8.740080919494045E-5,1.1002446539710328E-4,1.3810877690811446E-4,1.7286693280155923E-4,2.1575539248139535E-4,2.685164784071662E-4,3.332270576850563E-4,4.12353896910586E-4,5.088162715863788E-4,6.260563932820551E-4,7.681181813919105E-4,9.397348486669058E-4,0.001146425687362046,0.0013946023325801526,0.0016916846380780337,0.00204622612457819,0.0024680487490833583,0.002968386494022748,0.0035600369862796143,0.0042575200282892215,0.005077241557709393,0.00603766115134859,0.007159460757416506,0.008465711883882992,0.009982037997891904,0.011736768411936695,0.013761079459123353,0.016089118306663725,0.01875810434006285,0.021808402688370414,0.02528356417291314,0.029230325768731177,0.03369856559070047,0.03874120647614478,0.04441406245298467,0.05077562277588999,0.05788676879881172,0.06581041974359059,0.07461110442968164,0.08435445725276237,0.09510663813733766,0.10693367783077318,0.11990075173628524,0.13407138747507363,0.14950661348960018,0.1662640582092927,0.1843970115471364,0.20395346272384443,0.2249751305623657,0.24749650439119758,0.27154391546862106,0.29713466031845476,0.324276198478688,0.3529654478379438,0.38318820090728456,0.41491868499057283,0.4481192882305327,0.48274047188776387,0.5187208869398833,0.5559877101682932,0.5944572113503367,0.634035559033969,0.6746198676997333,0.7160994839900637,0.7583575042066636,0.8012725095585063,0.8447204998162647,0.888577000236386,0.9327193110109248,0.9770288632333637,1.0213936406024513,1.0657106219670787,1.1098881964884253,1.1538485007896524,1.197529626089359,1.2408876430608426,1.283898393087598,1.3265589967301241,1.3688890335825639,1.4109313522506943,1.4527524748637781,1.4944425672478021,1.5361149535139171,1.5779051622021685,1.6199695000927026,1.6624831591604763,1.7056378716968144,1.7496391381344367,1.7947030613715587,1.8410528301777063,1.8889149023699,1.9385149456791213,1.990073600408128,2.043802132963509,2.0998980530052522,2.158540769206178,2.2198873593956905,2.284068530155655,2.3511848387555174,2.421303246707442,2.494454069271035,2.570628379052917,2.649775914565731,2.7318035363946995,2.816574264644702,2.90390692179796,2.9935763951992986,3.0853145233034915,3.178811599765462,3.273718479619542,3.369649262358324,3.466184517848313,3.5628750128551503,3.6592458886192976,3.7548012335276963,3.8490289895454417,3.8490289895454417,3.941406126760464,4.031404017184854,4.118493936858383,4.202152624302449,4.281867823444769,4.357143740231261,4.427506344199596,4.4925084492370155,4.551734511500999,4.604805086957687,4.651380896096546,4.691166449016679,4.723913190155865,4.749422128354607,4.7675459246237395,4.778190416829278,4.78131556743971,4.776935827421458,4.7651199162462055,4.745990024721218,4.719720453909459,4.686535709712336,4.646708078691248,4.600554716356399,4.548434284406372,4.490743178218759,4.490743178218759,4.427911390231459,4.360398058680075,4.288686754436673,4.213280561398554,4.134697007975101,4.0534629086932785,3.9701091757658493,3.885165660626194,3.799156084915853,3.712593119209816,3.6259736658780213,3.539774399914537,3.4544476183306836,3.370417444824342,3.288076431933045,3.2077825977905956,3.129856928981747,3.0545813748841506,2.9821973523670344,2.912904772858437,2.8468615966831448,2.7841839123066596,2.7249465307993903,2.669184078569839,2.616892564320851,2.568031389377645,2.5225257641400995,2.4802694875433313,2.4411280411844434,2.4049419452976943,2.3715303201333793,2.340694593603411,2.312222294369392,2.2858908689197612,2.2614714616435787,2.2387325984705204,2.2174437172966095,2.197378492116031,2.1783179024695722,2.1783179024695722,2.1600530054146128,2.142387373611907,2.1251391701822246,2.108142838564311,2.0912503935428797,2.0743323077387186,2.05727799598276,2.039995907950173,2.02241324702967,2.004475340475101,1.9861446922709387,1.9673997556968144,1.9482334671759238,1.928651586539309,1.9086708912609651,1.8883172734753524,1.8676237886674003,1.8466287038447309,1.825373590812503,1.8039015069515383,1.7822553017558997,1.760476082445801,1.738601866384353,1.7166664419563091,1.694698453187912,1.672720716878754,1.6507497745584145,1.628795675346482,1.606861979947343,1.5849459706989426,1.5630390479457603,1.5411272891260277,1.5191921439313134,1.4972112367651602,1.4751592465199304,1.4530088334024212,1.4307315831364917,1.4082989402963637,1.3856831046957032,1.3628578675734797,1.3397993676601945,1.3164867509481906,1.2929027219908846,1.2690339786793563,1.244871526554231,1.2204108726767353,1.1956521027862563,1.1705998488083484,1.145263156659744,1.1196552666579531,1.0937933206358226,1.067698011061004,1.0413931880630307,1.0149054402937479,0.9882636650260485,0.9614986418840329,0.9346426231614612,0.9077289519023392,0.8807917168727175,0.8538654513354674,0.8269848802395964,0.800184718139633,0.7734995179500352,0.7469635685873748,0.7206108377216894,0.6944749542981264,0.6685892242378465,0.6429866718064251,0.6177000985582751,0.5927621515234301,0.5682053923828683,0.5440623597543067,0.5203656173472122,0.49714778160197504,0.4744415234575001,0.45227954004510484,0.4306944933354341,0.40971891402155497,0.3893850701612513,0.36972480128534785,0.3507693197731394,0.33254898227386115,0.3150930347949227,0.29842933577086567,0.28258406196615843,0.26758140245088646,0.2534432461275981,0.24018886839111772,0.2278346224856122,0.21639364100149985,0.20587555274692895,0.19628621995255588,0.18762750044120527,0.17989703903081417,0.17308809205240652,0.1671893884642638,0.16218503063528134,0.15805443745781436,0.1547723320332234,0.15230877574932358,0.1506292501335278,0.14969478741284933,0.14946215023578263,0.14988406050541106,0.15090947673301047,0.15248391874390874,0.15454983795189017,0.1570470307674867,0.15991309202486523,0.16308390461096978,0.16649416077175247,0.17007790986949994,0.17376912669084674,0.1775022937774954,0.18121299069257987,0.1848384826669905,0.1883183007131537,0.19159480506842708,0.19461372375352762,0.19732465811686073,0.19968154749258687,0.2016430855331581,0.2031730813849532,0.20424075965198182,0.20482099402528942,0.20489447052712442,0.2044477775066194,0.20347342080086342,0.2019697638114568,0.19994089360907552,0.19739641553289605,0.19435118006329033,0.19082494698121055,0.18684199295431103,0.18243066967934796,0.17762292053796752,0.17245376436865584,0.16696075540679212,0.16118342868865373,0.15516274025111412,0.14894051128990482,0.14255888507469525,0.13605980487324779,0.12948452042863073,0.12287312968602139,0.11626416150524262,0.10969420405025514,0.103197582447069,0.09680608817673259,0.09054876154952146,0.08445172751763481,0.07853808405204633,0.0728278413567449,0.0673379093393639,0.062082130015843194,0.057071350909256545,0.05231353501574829,0.047813902556395366,0.043575099511325634,0.03959738783692518,0.03587885229042502,0.03241561891817545,0.02920208049177754,0.026231124485930617,0.023494359568184485,0.020982336998341934,0.01868476379853233,0.016590705039169092,0.014688773077086815,0.01296730206750394,0.011414506539815097,0.010018623269127624,0.008768036083122889,0.007651383611358306,0.0066576503073258715,0.005776241350013525,0.0049970422604303216,0.004310464250067684,0.00370747645423686,0.003179626296361161,0.0027190492830692927,0.0023184695484173216,0.0019711924531942773,2.3080179517004585E-14,3.29218426625036E-14,4.686211025978935E-14,6.656597949951033E-14,9.435732428797098E-14,1.3347248259860387E-13,1.8840859839101221E-13,2.6540101922987163E-13,3.730760505009045E-13,5.233414116662456E-13,7.325981381541127E-13,1.0233861377629202E-12,1.4266133799606638E-12,1.9845686825696885E-12,2.754984043863734E-12,3.81649934327704E-12,5.275996318016739E-12,7.27841814646163E-12,1.0019886166206477E-11,1.3765179575393769E-11,1.8870974442228264E-11,2.581666664251977E-11,3.524515693010737E-11,4.80166899511621E-11,6.527975641535921E-11,8.856424383739105E-11,1.1990352515569512E-10,1.6199409214392409E-10,2.184037789199028E-10,2.9384271285181845E-10,3.9451504000622637E-10,5.285744023983149E-10,7.067123433267885E-10,9.429165893612201E-10,1.2554458743798997E-9,1.6680800837561395E-9,2.2117195520285824E-9,2.9264260049029726E-9,3.864020689464015E-9,5.091383635179953E-9,6.694632866365519E-9,8.784405091592867E-9,1.1502511521898954E-8,1.5030305897347767E-8,1.9599178736854474E-8,2.550368484723403E-8,3.311792323294347E-8,4.2915923209627E-8,5.5496951741806155E-8,7.161684938196707E-8,9.222673091092196E-8,1.1852065779238378E-7,1.5199420953519874E-7,1.9451625748261785E-7,2.484166857383666E-7,3.1659331908266965E-7,4.0264191689812277E-7,5.110137862588258E-7,6.472063682177707E-7,8.179930715075545E-7,1.0316996805614038E-6,1.2985358636813896E-6,1.6309916663451272E-6,2.044310408079476E-6,2.55705112275064E-6,3.191755604465713E-6,3.975737256231446E-6,4.942011295846979E-6,6.130388460397798E-6,7.588757170904058E-6,9.37458217153028E-6,1.1556650937240656E-5,1.4217102637284301E-5,1.7453778129006735E-5,2.138293330768062E-5,2.6142362113275967E-5,3.1894979542383095E-5,3.8832919067523255E-5,4.7182202846794385E-5,5.720804691812256E-5,6.92208671011218E-5,8.358305444440259E-5,1.007165916071251E-4,1.2111158338166906E-4,1.4533577546176708E-4,1.7404513533142532E-4,2.0799556757199994E-4,2.4805583272070344E-4,2.952217338147705E-4,3.5063162766473134E-4,4.1558330845768195E-4,4.915522992396413E-4,5.80211571916731E-4,6.834526984167714E-4,8.034084143603619E-4,9.424765518334401E-4,0.0011033452695073261,0.0012890194763498833,0.0015028483095135623,0.0017485534877539582,0.0020302583190987067,0.0023525170957268988,0.0027203445605223685,0.003139245079040908,0.003615241098322115,0.004154900420855008,0.0047653617689843095,0.0054543580631670925,0.006230236787935446,0.007101976773489018,0.008079200679941142,0.009172182436873635,0.010391848864587794,0.0117497746868824,0.013258170139963712,0.014929860389788692,0.01677825599228339,0.018817313668874888,0.021061486724875,0.02352566451149962,0.0262251004244815,0.029175328043810674,0.03239206515024096,0.03589110550455725,0.03968819844449902,0.043798916540512246,0.04823851175349128,0.05302176075322057,0.05816280028267284,0.06367495368751602,0.06957054996852005,0.07586073695298173,0.08255529041540814,0.08966242120277272,0.09718858263074391,0.10513828060929808,0.1135138891239333,0.12231547383727202,0.13154062668031818,0.1411843143685111,0.15123874380089458,0.161693247277713,0.1725341903996961,0.1837449053891965,0.19530565239804182,0.20719361113927237,0.2193829049007328,0.23184465866968343,0.24454709272221983,0.25745565261344566,0.27053317604918237,0.2837400966336553,0.2970346839771471,0.31037331912085286,0.32371080370166205,0.33700070074628546,0.35019570446143744,0.3632480358840915,0.3761098607826815,0.3887337257656155,0.4010730081664079,0.4130823749431945,0.4247182455616214,0.4359392536303625,0.4467067019329224,0.4569850054517296,0.46674211701325446,0.4759499302969492,0.48458465514567833,0.4926271603889467,0.5000632797390324,0.5068840767392541,0.5130860652265558,0.5186713823100051,0.523647911453937,0.5280293538798471,0.5318352471544915,0.5350909305021715,0.5378274570558257,0.5400814539330866,0.5418949316788872,0.5433150452447574,0.544393809266525,0.5451877709472727,0.5457576443426376,0.5461679102733858,0.5464863864495397,0.5467837726761022,0.5471331762192704,0.5476096225416576,0.5482895566650405,0.5492503403900828,0.5505697504967412,0.5523254828701185,0.554594667249181,0.5574533969859456,0.5609762778374627,0.5652359993998921,0.5703029323417268,0.5762447541107957,0.5831261052863481,0.5910082782328331,0.5999489391954054,0.6100018844679231,0.6212168307711533,0.6336392395103796,0.6473101741451953,0.6622661895068067,0.6785392515454629,0.6961566856874711,0.7151411517313211,0.7355106430183369,0.7572785074761395,0.7804534880533616,0.8050397800403742,0.831037102801052,0.8584407835217338,0.8872418507111673,0.9174271353543995,0.9489793778285199,0.9818773389222539,1.0160959135581706,1.0516062460880666,1.0883758463120765,1.1263687056526288,1.165545413188632,1.2058632715163653,1.2472764126453255,1.289735914353954,1.3331899176169577,1.3775837458687477,1.4228600269830898,1.4689588189254676,1.5158177400704047,1.5633721051713214,1.6115550679259467,1.660297770998039,1.709529504238748,1.7591778717021176,1.8091689678733909,1.8594275633308173,1.9098772998472366,1.9604408947124978,2.0110403538280512,2.0615971928967345,2.1120326658099837,2.162267999127212,2.212224631353251,2.261824455554265,2.3109900637149874,2.3596449911333237,2.4077139590755636,2.455123113878048,2.501800260679703,2.547675090004903,2.592679395485829,2.636747281116411,2.679815356563024,2.7218229192168923,2.7627121218552895,2.7627121218552895,2.80242812497875,2.840919233103772,2.8781370145104637,2.914036404165681,2.9485757897598557,2.981717081003981,3.01342576252746,3.043670930893023,3.072425316397808,3.0996652904566613,3.1253708594622354,3.1495256460846877,3.1721168590111053,3.1931352521310368,3.212575074150611,3.230434009565295,3.24671311184332,3.2614167295706604,3.274552426188828,3.286130893822377,3.296165861549068,3.3046739983169253,3.31167481056428,3.3171905344563712,3.321246022520387,3.3238686243447777,3.3250880609126354,3.324936292067058,3.3234473765620156,3.3206573241380983,3.316603939080799,3.311326654770803,3.304866358821704,3.2972652085202947,3.288566436436804,3.2788141462554123,3.2680530990860075,3.2680530990860075,3.256328490753218,3.2436857208140544,3.230170154325898,3.2158268776672916,3.200700449998735,3.184834652233551,3.168272235663484,3.151054672643212,3.1332219119760687,3.1148121418532133,3.095861563373886,3.0764041778092825,3.0564715908611335,3.0360928372032014,3.015294228575193,2.994099228620044,2.972528357514532,2.950599129237619,2.9283260240501154,2.905720498423152,2.8827910342536143,2.859543228744102,2.835979925808054,2.812101389291916,2.787905517693072,2.7633880994020013,2.738543106819427,2.713363027003863,2.6878392258036548,2.6619623417321012,2.635722705167511,2.6091107778152907,2.5821176067699163,2.5547352869743705,2.526957425406629,2.4987795999397506,2.470199805535927,2.4412188802562302,2.4118409035062687,2.382073559000974,2.3519284551254405,2.3519284551254405,2.3214213956963916,2.2905725945921054,2.2594068283161355,2.227953521288005,2.1962467595061437,2.164325229194968,2.1322320781178754,2.1000146983962584,2.067724430904911,2.035416192597406,2.003148029430236,1.970980598879442,1.9389765873544025,1.9072000690860764,1.875715814276469,1.8445885554180252,1.8138822217019817,1.7836591523107694,1.7539793001103319,1.7248994378047968,1.6964723789720413,1.6687462265513024,1.6417636612933035,1.615561282403513,1.5901690121084453,1.5656095751555237,1.5418980633258992,1.5190415939077646,1.497039069760446,1.4758810471163821,1.4555497156422172,1.4360189935382988,1.4172547386275218,1.3992150745018264,1.3818508288915672,1.365106079534584,1.3489188009836,1.3332216040378313,1.3179425578516222,1.303006083291912,1.288333904817425,1.2738460470622315,1.259461861447843,1.2451010675397203,1.2306847935198155,1.216136600075061,1.2013834722057704,1.186356763935331,1.1709930816454637,1.1552350927564232,1.139032247700421,1.122341404576045,1.105127347494218,1.0873631914010684,1.069030668056001,1.0501202898178785,1.030631389910804,1.0105720398651235,0.9899588468207686,0.9688166353018007,0.9471780198876272,0.925082876885172,0.902577724617701,0.8797150232644018,0.856552406288816,0.8331518563671553,0.8095788393576864,0.7859014102331672,0.7621893050282733,0.7385130327366525,0.7149429807360894,0.6915485467381695,0.6683973094678547,0.6455542492991901,0.6230810289296936,0.6010353428941048,0.5794703433261141,0.5584341479037876,0.5379694343903917,0.5181131246369549,0.49889615937516824,0.4803433636267964,0.462473401114631,0.4452988147037691,0.42882614865172636,0.41305614731968227,0.3979840240099235,0.3835997927579405,0.36988865522983894,0.3568314343616044,0.3444050460278107,0.33258299984194034,0.3213359201639451,0.31063207851563984,0.30043792887117887,0.2907186376862583,0.28143860104210733,0.2725619418936241,0.26405298110900477,0.25587667675402875,0.24799902689062378,0.24038743200927765,0.23301101408147842,0.22584089008549577,0.21885039871121617,0.21201527977331874,0.20531380664408316,0.1987268727463245,0.1922380338137436,0.18583350822248101,0.17950213821774452,0.17323531529868014,0.16702687338058417,0.16087295362515483,0.15477184501748506,0.1487238048750303,0.14273086350240638,0.13679661716130734,0.1309260134128542,0.12512513271693151,0.11940096994685083,0.11376121920581209,0.10821406502223105,0.10276798266232155,0.09743154993858026,0.09221327252004562,0.0871214243720772,0.08216390457714874,0.07734811142041641,0.07268083427059606,0.0681681634532063,0.0638154180039714,0.059627090908776825,0.05560681118584704,0.05175732194777459,0.04808047339687031,0.0445772295574806,0.041247687433160485,0.038091107194029916,0.03510595194875934,0.03228993563454556,0.029640077564702647,0.027152762204506294,0.02482380279869037,0.022648507545500057,0.020621747099233735,0.018738022282666765,0.01699153099949134,0.015376233452017319,0.013885914888012085,0.012514245220183741,0.011254834980056513,0.010101287182834828,0.00904724478949585,0.008086433555351484,0.007212700149468298,0.00642004551576896,0.0057026535237168765,0.005054915023878082,0.004471447481213814,0.003947110406798039,0.003477016847030293,0.0030565412187763897,0.002681323799762176,0.0023472721966447205,0.0020505601192140634,0.0017876237889328768,0.0015551563043019578,0.0013501002751700284,0.0011696390238816723,0.0010111866338568638,8.723771065445204E-4,7.510528663755628E-4,6.45252830971923E-4,0.12964691741304166,0.13158153037522868,0.13353441362876384,0.13550597826390698,0.13749663575115295,0.1395067962909831,0.1415368671348942,0.1435872508844327,0.14565834377521433,0.14775053395313958,0.14986419975021914,0.15199970796759638,0.15415741217350162,0.15633765102398525,0.15854074661436038,0.16076700286933673,0.16301670397983925,0.1652901128944912,0.1675874698736828,0.16990899111405852,0.17225486745113144,0.17462526314756793,0.17702031477449026,0.17944013019290925,0.18188478764213084,0.18435433494167225,0.18684878881289074,0.189368134326147,0.1919123244789285,0.1944812799099178,0.19707488875352513,0.19969300663891207,0.20233545683701448,0.20500203055852284,0.20769248740521332,0.2104065559764404,0.21314393463198197,0.2159042924118197,0.21868727011279357,0.22149248152142434,0.22431951480154408,0.2271679340347136,0.23003728091074546,0.23292707656497913,0.23583682355831176,0.23876600799531417,0.24171410177513203,0.24468056496923205,0.24766484831943075,0.2506663958490517,0.2536846475794626,0.2567190423436973,0.25976902068832425,0.26283402785422477,0.2659135168264667,0.2690069514430158,0.27211380955162806,0.27523358620388205,0.2783657968749995,0.2815099806977911,0.28466570369884087,0.28783256202481317,0.29101018514663796,0.2941982390291871,0.2973964292540206,0.3006045040827362,0.30382225744851604,0.30704953186351436,0.3102862212298875,0.31353227354242474,0.3167876934709692,0.32005254481109724,0.3233269527918361,0.32661110622956535,0.32990525951766586,0.33320973444192026,0.33652492181217364,0.33985128290129074,0.3431893506830248,0.34653973086100875,0.3499031026817398,0.35328021952508026,0.35667190926651293,0.36007907440611403,0.3635026919599482,0.36694381311037433,0.37040356261252866,0.373883137955056,0.3773838082739784,0.380906913019407,0.3844538603756316,0.38802612543595033,0.3916252481344361,0.3952528309376415,0.39891053630008455,0.4026000838881418,0.4063232475777696,0.4100818522322588,0.41387777026697675,0.41771291800876975,0.4215892518584343,0.42550876426530904,0.4294734795237274,0.4334854494016468,0.4375467486123881,0.4416594701409375,0.44582572043678076,0.4500476144857085,0.45432727077344365,0.45866680615433497,0.4630683306386839,0.4675339421125789,0.4720657210043353,0.4766657249118542,0.4813359832053502,0.48607849162001593,0.490895206853219,0.49578804118086867,0.5007588571075167,0.5058094620646952,0.5109416031718429,0.5161569620740021,0.5214571498702452,0.526843702146525,0.5323180741263249,0.537881635952153,0.5435356681105314,0.5492813570126986,0.5551197907428014,0.5610519549848476,0.5670787291391759,0.5732008826386391,0.5794190714741282,0.5857338349384547,0.5921455925969817,0.5986546414927588,0.605261153593238,0.6119651734849907,0.6187666163221366,0.6256652660335033,0.6326607737928385,0.6397526567556663,0.6469402970656768,0.6542229411328221,0.6615996991845731,0.6690695450910938,0.6766313164643754,0.6842837150306879,0.6920253072750286,0.6998545253555656,0.7077696682854289,0.7157689033785671,0.7238502679557541,0.7320116713062441,0.7402508968999938,0.7485656048447933,0.7569533345821579,0.7654115078152689,0.773937431661824,0.7825283020241646,0.7911812071686307,0.7998931315057131,0.8086609595621634,0.8174814801359073,0.8263513906242932,0.8352673015158993,0.8442257410358988,0.8532231599347173,0.8622559364095614,0.871320381148183,0.880412742484137,0.8895292116526524,0.8986659281361482,0.9078189850883851,0.9169844348261762,0.9261582943775772,0.9353365510754976,0.944515168185694,0.9536900905581543,0.9628572502909819,0.9720125723959341,0.9811519804549511,0.9902714022570579,0.9993667754052447,1.0084340528830245,1.0174692085705968,1.0264682427006888,1.0354271872443765,1.044342111217372,1.053209125897515,1.0620243899444006,1.0707841144123333,1.0794845676480558,1.0881220800649107,1.0966930487854027,1.105193942144354,1.1136213040451384,1.1219717581617394,1.1302420119796723,1.1384288606690602,1.1465291907835067,1.1545399837785968,1.1624583193442652,1.1702813785454738,1.1780064467659985,1.1856309164504133,1.1931522896396602,1.2005681802959116,1.20787631641278,1.20787631641278,1.2150745419071691,1.2221608182895114,1.229133226109349,1.2359899661736304,1.242729360535417,1.24934985325104,1.255850010904118,1.2622285228952044,1.268484201496211,1.2746159816691436,1.2806229206490594,1.2865041972915723,1.2922591111856345,1.2978870815327466,1.303387645794148,1.3087604581080239,1.314005287479162,1.3191220157439707,1.3241106353142313,1.3289712467034107,1.3337040558398565,1.338309371171667,1.3427876005685198,1.3471392480262412,1.3513649101803948,1.3554652726356589,1.3594411061182838,1.3632932624594039,1.3670226704174921,1.3706303313487254,1.3741173147345638,1.3774847535762655,1.380733839666615,1.383865818749542,1.3868819855788055,1.3897836788873503,1.3925722762793475,1.3952491890573606,1.397815856997444,1.4002737430853427,1.4026243282273072,1.4048691059493157,1.4070095770987985,1.4090472445631792,1.4109836080197575,1.4128201587316367,1.4145583744044998,1.416199714119167,1.4177456133548643,1.419197479118167,1.4205566851925129,1.4218245675230972,1.4230024197517974,1.424091488916607,1.4250929713297875,1.4260080086486473,1.4268376841525308,1.4275830192391694,1.428244970153097,1.4288244249583364,1.4293222007669875,1.4297390412347395,1.4300756143336748,1.4303325104120148,1.4305102405497103,1.4306092352179534,1.4306298432498763,1.4305723311287948,1.4304368825994092,1.4302235986064746,1.4299324975643857,1.4295635159601587,1.4291165092911993,1.4285912533382115,1.4279874457724813,1.4273047080956827,1.4265425879092313,1.4257005615090974,1.4247780368008467,1.4237743565285859,1.422688801810346,1.422688801810346,1.4215205959713524,1.4202689086655382,1.4189328602745857,1.417511526572747,1.416003943644677,1.4144091130425267,1.4127260071676255,1.4109535748611484,1.4090907471873475,1.4071364433920894,1.4050895770187213,1.4029490621625742,1.4007138198447842,1.3983827844855592,1.395954910456488,1.393429178691076,1.3908046033323265,1.3880802383958817,1.3852551844270296,1.382328595129746,1.379299683945868,1.376167730562509,1.3729320873259112,1.3695921855401096,1.3661475416290125,1.3625977631408202,1.3589425545741207,1.3551817230054268,1.3513151834985129,1.3473429642764694,1.3432652116380945,1.3390821946009936,1.3347943092545267,1.3304020828066518,1.3259061773095817,1.3213073930501915,1.3166066715920934,1.3118050984573677,1.306903905437064,1.3019044725206799,1.2968083294360404,1.2916171567921568,1.2863327868188892,1.280957203698448,1.275492543485034,1.269941093610166,1.2643052919724806,1.2585877256120905,1.2527911289707772,1.246918381740591,1.2409725063046013,1.2349566647747816,1.2288741556331737,1.2227284099836297,1.21652298742255,1.210261571538124,1.2039479650486171,1.1975860845912651,1.1911799551742657,1.184733704305316,1.1782515558109474,1.1717378233617652,1.1651969037194223,1.1586332697218766,1.1520514630240888,1.145456086611939,1.1388517971076246,1.1322432968852782,1.125635326015947,1.1190326540613973,1.112440071736507,1.105862382460196,1.0993043938150382,1.0927709089357531,1.0862667178468606,1.0797965887697178,1.073365259419124,1.066977428309528,1.0606377460907035,1.0543508069325194,1.0481211399781711,1.0419532008848948,1.0358513634708333,1.02981991148631,1.0238630305273109,1.0179848001085081,1.0121891859126089,1.006480032232308,1.006480032232308,1.0008610546204861,0.9953358327637422,0.9899078035936857,0.9845802546497667,0.9793563177067627,0.974238962679341,0.969230991815415,0.9643350341892979,0.9595535405049419,0.9548887782187973,0.9503428269911092,0.9459175744737118,0.9416147124416407,0.9374357332751398,0.9333819267978906,0.9294543774765492,0.925653961985953,0.9219813471435981,0.9184369882162919,0.9150211276011507,0.9117337938824042,0.9085748012647709,0.9055437493834774,0.9026400234903168,0.8998627950144678,0.897211022496144,0.8946834528905082,0.8922786232386326,0.8899948627017042,0.8878302949540293,0.885782840929844,0.8838502219183273,0.8820299630006743,0.8803193968225344,0.8787156676945805,0.8772157360134736,0.8758163829949656,0.8745142157104197,0.8733056724175299,0.8721870281755928,0.8711544007352205,0.8702037566919724,0.8693309178929752,0.8685315680852024,0.8678012597937145,0.8671354214178004,0.8665293645326178,0.8659782913836181,0.8654773025607189,0.8650214048389122,0.864605519171735,0.8642244888237601,0.8638730876280618,0.8635460283543855,0.8632379711735746,0.8629435322036408,0.8626572921227182,0.8623738048340301,0.862087606167896,0.8617932226057343,0.8614851800109719,0.8611580123517499,0.8608062704003142,0.8604245303940107,0.860007402642864,0.8595495400687941,0.8590456466616455,0.8584904858373228,0.8578788886835181,0.8572057620786802,0.8564660966701142,0.8556549746973419,0.8547675776471366,0.8537991937269332,0.8527452251436705,0.8516011951754602,0.8503627550238732,0.8490256904350477,0.8475859280782525,0.8460395416710123,0.8443827578403789,0.8426119617104555,0.8407237022067996,0.8387146970689007,0.8365818375624903,0.8343221928840485,0.8319330142504755,0.8294117386675297,0.826755992371278,0.8239635939374621,0.821032557054355,0.8179610929553616,0.8147476125083122,0.8113907279590862,0.8078892543279146,0.8042422104574105,0.8004488197120914,0.7965085103298507,0.7924209154265697,0.7881858726557255,0.783803423525593,0.779273812377286,0.774597485027599,0.7697750870812525,0.7648074619178346,0.7596956483593338,0.7544408780248341,0.749044572379505,0.7435083394856511,0.7378339704641256,0.7320234356749808,0.7260788806267365,0.7200026216241655,0.7137971411649456,0.7074650830960035,0.7010092475407583,0.6944325856089029,0.6877381939006771,0.6809293088179607,0.6740093006947603,0.6669816677599869,0.6598500299455944,0.6526181225534036,0.6452897897940543,0.6378689782117075,0.6303597300081755,0.6227661762802676,0.6150925301841305,0.6073430800404074,0.5995221823939625,0.5916342550419017,0.5836837700434748,0.5756752467253702,0.5676132446957043],\n",
       "\"..quantile..\":[0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,0.75,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0]\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"axis_title_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_title_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_ticks_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis\":{\n",
       "\"blank\":true\n",
       "},\n",
       "\"axis_line_y\":{\n",
       "\"blank\":false\n",
       "}\n",
       "}\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"LGo54c\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();    \n",
       "   </script>"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "residualPlot(iris_dat, \"petal_length\", \"petal_width\", colorBy=\"species\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e9f12704",
   "metadata": {},
   "source": [
    "## Flipped Coordinates"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "f9c4701b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"ZObfDH\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"mapping\":{\n",
       "\"x\":\"petal_length\",\n",
       "\"y\":\"residual\"\n",
       "},\n",
       "\"coord\":{\n",
       "\"name\":\"fixed\",\n",
       "\"flip\":true,\n",
       "\"ratio\":0.25\n",
       "},\n",
       "\"data\":{\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"petal_width residual\"\n",
       "}],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "\"fill\":\"..count..\"\n",
       "},\n",
       "\"stat\":\"bin2d\",\n",
       "\"position\":\"identity\",\n",
       "\"binwidth\":[0.4,0.1],\n",
       "\"geom\":\"tile\",\n",
       "\"data\":{\n",
       "\"..count..\":[3.0,1.0,5.0,14.0,8.0,5.0,1.0,1.0,1.0,7.0,1.0,2.0,1.0,1.0,2.0,2.0,1.0,3.0,1.0,1.0,1.0,1.0,3.0,5.0,3.0,1.0,1.0,2.0,5.0,4.0,6.0,1.0,1.0,3.0,3.0,1.0,1.0,8.0,2.0,1.0,1.0,1.0,1.0,3.0,1.0,2.0,3.0,4.0,1.0,1.0,1.0,1.0,2.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,2.0,1.0,3.0,1.0],\n",
       "\"residual\":[0.03456690441848109,0.13456690441848107,-0.16543309558151897,-0.065433095581519,0.03456690441848109,0.13456690441848107,0.23456690441848105,-0.26543309558151895,-0.16543309558151897,-0.065433095581519,0.03456690441848109,0.13456690441848107,0.334566904418481,0.23456690441848105,-0.065433095581519,0.03456690441848109,0.13456690441848107,-0.16543309558151897,-0.065433095581519,0.13456690441848107,-0.365433095581519,-0.26543309558151895,-0.16543309558151897,-0.065433095581519,0.03456690441848109,0.13456690441848107,-0.365433095581519,-0.26543309558151895,-0.16543309558151897,-0.065433095581519,0.03456690441848109,0.13456690441848107,0.23456690441848105,-0.26543309558151895,-0.16543309558151897,-0.065433095581519,0.03456690441848109,0.13456690441848107,0.23456690441848105,0.334566904418481,0.5345669044184811,0.6345669044184812,-0.565433095581519,-0.16543309558151897,0.03456690441848109,0.13456690441848107,0.23456690441848105,0.434566904418481,0.5345669044184811,-0.465433095581519,-0.26543309558151895,0.03456690441848109,0.13456690441848107,0.23456690441848105,0.334566904418481,0.5345669044184811,-0.465433095581519,-0.365433095581519,-0.26543309558151895,0.13456690441848107,0.334566904418481,-0.465433095581519,-0.26543309558151895,-0.16543309558151897],\n",
       "\"petal_length\":[1.0,1.0,1.4,1.4,1.4,1.4,1.4,1.8,1.8,1.8,1.8,1.8,1.8,3.0,3.4000000000000004,3.4000000000000004,3.4000000000000004,3.8000000000000003,3.8000000000000003,3.8000000000000003,4.2,4.2,4.2,4.2,4.2,4.2,4.6,4.6,4.6,4.6,4.6,4.6,4.6,5.0,5.0,5.0,5.0,5.0,5.0,5.0,5.0,5.0,5.4,5.4,5.4,5.4,5.4,5.4,5.4,5.800000000000001,5.800000000000001,5.800000000000001,5.800000000000001,5.800000000000001,5.800000000000001,5.800000000000001,6.2,6.2,6.2,6.2,6.2,6.6000000000000005,6.6000000000000005,7.0]\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"yintercept\":0.0,\n",
       "\"color\":\"#ff00ff\",\n",
       "\"linetype\":\"dashed\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"hline\",\n",
       "\"data\":{\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"axis_title_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_text_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_title_x\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_ticks_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis\":{\n",
       "\"blank\":true\n",
       "},\n",
       "\"axis_line_y\":{\n",
       "\"blank\":false\n",
       "},\n",
       "\"axis_ticks\":\"blank\",\n",
       "\"axis_text\":\"blank\",\n",
       "\"axis_line\":\"blank\"\n",
       "}\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"ZObfDH\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();    \n",
       "   </script>"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "residualPlot(iris_dat, \"petal_length\", \"petal_width\", geom=\"tile\", binWidth=.4 to .1, marginal=\"none\") + \n",
    "    coordFixed(ratio=.25, flip=true) +\n",
    "    theme(axisTicks=\"blank\", axisText=\"blank\", axisLine=\"blank\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "223e380a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "   <div id=\"aiL8jK\"></div>\n",
       "   <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
       "       (function() {\n",
       "           var plotSpec={\n",
       "\"mapping\":{\n",
       "\"x\":\"petal_length\",\n",
       "\"y\":\"residual\"\n",
       "},\n",
       "\"data\":{\n",
       "\"residual\":[-0.016472739982832107,-0.016472739982832107,0.025169173245708054,-0.05811465321137227,-0.016472739982832107,0.05860152033154742,0.08352726001716787,-0.05811465321137227,-0.016472739982832107,-0.15811465321137227,-0.05811465321137227,-0.09975656643991243,-0.11647273998283211,0.008452999702788316,0.06681108647424822,0.14188534678862774,0.22516917324570807,0.08352726001716787,-0.041398479668452615,0.04188534678862771,-0.1413984796684526,0.14188534678862774,0.15009491293132854,0.1586015203315474,-0.22468230612553292,-0.09975656643991243,0.10024343356008758,-0.05811465321137227,-0.016472739982832107,-0.09975656643991243,-0.09975656643991243,0.14188534678862774,-0.15811465321137227,-0.016472739982832107,-0.15811465321137227,0.06681108647424822,0.025169173245708054,-0.15811465321137227,0.025169173245708054,-0.05811465321137227,0.12516917324570803,0.12516917324570803,0.025169173245708054,0.30024343356008754,-0.024682306125532905,0.08352726001716787,-0.09975656643991243,-0.016472739982832107,-0.05811465321137227,-0.016472739982832107,-0.19065587652465754,-0.0073720500675771294,-0.17393970298173778,8.375160751237232E-4,-0.04901396329611707,-0.20737205006757709,0.009344123475342636,-0.00766909132509519,-0.24901396329611702,0.14247942930366375,-0.09095291778217551,0.11755368961804336,-0.2991624839248763,-0.19065587652465754,0.16740516898928437,-0.06573013683903728,-0.0073720500675771294,-0.34080439715341626,-0.0073720500675771294,-0.15752057069633607,0.16770221024680243,8.375160751237232E-4,-0.17393970298173778,-0.3906558765246575,-0.12408822361049676,-0.06573013683903728,-0.2322977897531977,-0.015581616210277982,-0.0073720500675771294,-0.09095291778217551,-0.11587865746779591,-0.17423674423925584,-0.057520570696336204,-0.157223529438818,-0.0073720500675771294,0.09262794993242296,-0.09065587652465745,-0.16573013683903715,-0.040804397153416216,8.375160751237232E-4,-0.26573013683903723,-0.14901396329611716,-0.09916248392487637,-0.00766909132509519,-0.0824463103819566,-0.1824463103819567,-0.0824463103819566,-0.12408822361049676,0.21725664836052538,-0.040804397153416216,0.36799925150432067,0.1427764705611818,0.009641164732860918,-0.16543309558151886,0.15128307796140117,-0.2818522278669202,0.19262794993242283,-0.4569264881812998,-0.24871692203859896,0.3263573382757805,0.2427764705611819,0.05949264410410149,0.17620881764702134,0.28441838378972206,0.6427764705611818,0.4594926441041014,-0.1237911823529787,-0.22349414109546029,-0.20677796755254096,-0.21558161621027794,0.292924991189941,0.3260602970182622,-0.42349414109546046,0.12606029701826227,0.09292499118994124,-0.3320007484956793,0.16770221024680243,0.12606029701826227,0.13456690441848118,-0.4487169220385989,-0.2736426617242196,-0.29856840140984,0.23456690441848127,-0.2572235294388181,-0.565433095581519,0.12635733827578033,0.434566904418481,-0.1237911823529787,0.16770221024680243,0.2178507308755615,0.434566904418481,0.5427764705611817,0.1427764705611818,0.20964116473286065,0.49292499118994115,0.5011345573326416,0.18441838378972197,0.20113455733264174,0.41785073087556124,0.042776470561181945],\n",
       "\"petal_length\":[1.4,1.4,1.3,1.5,1.4,1.7,1.4,1.5,1.4,1.5,1.5,1.6,1.4,1.1,1.2,1.5,1.3,1.4,1.7,1.5,1.7,1.5,1.0,1.7,1.9,1.6,1.6,1.5,1.4,1.6,1.6,1.5,1.5,1.4,1.5,1.2,1.3,1.5,1.3,1.5,1.3,1.3,1.3,1.6,1.9,1.4,1.6,1.4,1.5,1.4,4.7,4.5,4.9,4.0,4.6,4.5,4.7,3.3,4.6,3.9,3.5,4.2,4.0,4.7,3.6,4.4,4.5,4.1,4.5,3.9,4.8,4.0,4.9,4.7,4.3,4.4,4.8,5.0,4.5,3.5,3.8,3.7,3.9,5.1,4.5,4.5,4.7,4.4,4.1,4.0,4.4,4.6,4.0,3.3,4.2,4.2,4.2,4.3,3.0,4.1,6.0,5.1,5.9,5.6,5.8,6.6,4.5,6.3,5.8,6.1,5.1,5.3,5.5,5.0,5.1,5.3,5.5,6.7,6.9,5.0,5.7,4.9,6.7,4.9,5.7,6.0,4.8,4.9,5.6,5.8,6.1,6.4,5.6,5.1,5.6,6.1,5.6,5.5,4.8,5.4,5.6,5.1,5.1,5.9,5.7,5.2,5.0,5.2,5.4,5.1]\n",
       "},\n",
       "\"kind\":\"plot\",\n",
       "\"scales\":[{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"petal_width residual\"\n",
       "},{\n",
       "\"aesthetic\":\"y\",\n",
       "\"name\":\"residual\"\n",
       "}],\n",
       "\"layers\":[{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"color\":\"white\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"point\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "},\n",
       "\"stat\":\"identity\",\n",
       "\"yintercept\":0.0,\n",
       "\"color\":\"#ff00ff\",\n",
       "\"linetype\":\"dashed\",\n",
       "\"position\":\"identity\",\n",
       "\"geom\":\"hline\",\n",
       "\"data\":{\n",
       "}\n",
       "},{\n",
       "\"mapping\":{\n",
       "\"x\":\"..density..\"\n",
       "},\n",
       "\"stat\":\"bin\",\n",
       "\"orientation\":\"y\",\n",
       "\"margin_side\":\"r\",\n",
       "\"color\":\"white\",\n",
       "\"alpha\":0.1,\n",
       "\"marginal\":true,\n",
       "\"position\":\"stack\",\n",
       "\"binwidth\":0.1,\n",
       "\"geom\":\"histogram\",\n",
       "\"fill\":\"white\",\n",
       "\"data\":{\n",
       "\"residual\":[-0.5854330955815189,-0.4854330955815189,-0.3854330955815189,-0.28543309558151886,-0.18543309558151888,-0.0854330955815189,0.014566904418481186,0.11456690441848116,0.21456690441848114,0.3145669044184811,0.4145669044184811,0.5145669044184812,0.6145669044184813,0.7145669044184811],\n",
       "\"..density..\":[0.07724929180233771,0.15449858360467542,0.2317478754070131,0.6952436262210393,1.6994844196514294,2.317478754070131,2.3947280458724687,1.8539830032561049,1.0814900852327278,0.38624645901168847,0.38624645901168847,0.2317478754070131,0.07724929180233771,0.0]\n",
       "}\n",
       "}],\n",
       "\"theme\":{\n",
       "\"name\":\"bw\",\n",
       "\"text\":{\n",
       "\"family\":\"monospace\",\n",
       "\"blank\":false\n",
       "},\n",
       "\"flavor\":\"high_contrast_dark\"\n",
       "}\n",
       "};\n",
       "           var plotContainer = document.getElementById(\"aiL8jK\");\n",
       "           window.letsPlotCall(function() {{\n",
       "               LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
       "           }});\n",
       "       })();    \n",
       "   </script>"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "residualPlot(iris_dat, \"petal_length\", \"petal_width\", color=\"white\", binWidth=.1, marginal=\"hist:r\") + \n",
    "    ylab(\"residual\") +\n",
    "    themeBW() + theme(text=elementText(family=\"monospace\")) + \n",
    "    flavorHighContrastDark()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Kotlin",
   "language": "kotlin",
   "name": "kotlin"
  },
  "language_info": {
   "codemirror_mode": "text/x-kotlin",
   "file_extension": ".kt",
   "mimetype": "text/x-kotlin",
   "name": "kotlin",
   "nbconvert_exporter": "",
   "pygments_lexer": "kotlin",
   "version": "1.8.20"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
